“Unfortunately the Mac OS Leopard PHP build doesn’t bring GD library installed.
There are many tutorials around the web telling how to patch the system so you can have it working but all are very complicated and require the installation of Xcode, etc, so you need some gigs of free HD space and a lot of free time to do the trick.
After goggling for some hours searching the simplest tutorial, I have found this great solution that works like a charm and it’s as simple and fast as write some commands in the terminal.
This tutorial tells you how to overwrite the system PHP installation with a new with GD built in.
So what you need to do is:
-> Open Terminal App
-> Write “sudo mv /usr/local/php5 ~/Desktop/php5.old” and press return
– You’ll be asked for the admin login
-> Write “curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz” and press return
-> Write “tar -xzf php5-*-beta.tar.gz” and press return
-> Write “sudo mv php5 /usr/local/” and press return
-> Write “sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf” and press return
-> Write “sudo apachectl restart” and press return”
Courtesy of Marc Liyanage