Results 1 to 5 of 5

Thread: GD on OS X

  1. #1
    Join Date
    Dec 2005
    Posts
    395

    GD on OS X

    I am trying to recompile the PHP i have on my OS X intel system with GD, however when trying to do so, it prompts me that I am missing libpng. I have done various searches on google for libpng, but on the libpng site the only OS X listed is for powerPC not intel. Regardless, I have read other articles suggesting the they have GD successfully running on their OS X intel. Does anyone know how to do this?

  2. #2
    Join Date
    Jul 2002
    Location
    Florida
    Posts
    285
    Darwinports has libpng. Have you tried that?
    Mark

  3. #3
    Join Date
    Dec 2005
    Posts
    395
    Thanks for the reply. I was able to download Darwin ports and install libpng, however when I run the php ./configure --with-gd it still isnt finding libpng. Do I have to specify the path to libpng somewhere in the config command line?

  4. #4
    Join Date
    Jul 2002
    Location
    Florida
    Posts
    285
    Darwinports usually compiles anything under /opt/local/ so you will need to move libpng to /usr/local/lib/ in order for the config script to find it.
    Mark

  5. #5
    Join Date
    Jun 2000
    Location
    Washington, USA
    Posts
    5,991
    Try adding --with-png-dir=/opt/local onto your configure string.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •