Adding GD library for Mac OS X Leopard

Tue, Sep 9, 2008

Server / Web Apps

“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” 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


This post was written by:

- who has written 48 posts on Mac Lab: An Apple Macintosh OS X, Mac & PC Blog.

3 Comments For This Post

  1. Roberto Says:

    Hi Barry,

    I tried to follow the steps of your mini-manual in Leopard Server and I got the next mesage when I used the first comand line:

    mv: rename /usr/local/php5 to /Users/admin/Desktop/php5.old: No such file or directory

    What I have to do? or what I’m doing wrong.


  2. Barry Bourland Says:

    Hi Roberto – are you using Leopard Server? If so, try this page:

  3. Abhishek Shah Says:

    Hi Roberto, Leopard Server stores php and web files in a diferent localtion. This page is if a developer wants to hosts a website on its client Leopard edtion

Leave a Reply