if you are on a Debian based server (such as Ubuntu) you can run the following command:
apt-get install php5-gd
Then once it is complete run:
This will restart your server and enable GD in PHP.
If you are on another type of system you will need to use something else (like yum install) or compile directly into PHP.