Installing GD PHP Extension on a MacBook Pro

I’ve got XCode installed on my MBP, so you’ll need that. Then, follow the instructions in this great post.

A couple notes:

  • You’ll need to download the Apache PHP mod 44-2 source tarball from the Apple site. This doesn’t match the PHP build version number in php_info(), but that’s ok.
  • Use the 64-bit instructions. Even though PHP info said I386, when I used the 32-bit instructions GD was enabled when I ran php -i from the command-line but not from php_info() in a browser.
  • Add --disable-dependency-tracking to the configure command line for the JPEG library.

Leave a Reply