When I run SNORT under BT2 for graphs it says I need to rebuild PHP with -gd is there an easy way to do that?

Thanks.