Home Forums OS X Server and Client Discussion Web Recompile PHP for Mac OS X 10.4 server

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #365213
    visualinventor
    Participant

    I want to recompile the mac PHP binaries to include the GD and pdf lib libraries … I want all the standard paths (apple installed paths) to stay in place. Can anyone give me a tutorial on this or point me to one. I have searched and searched for an updated tutorial but I haven’t found anything even close.

    I installed the entorpy.ch packages and that was only marginally successful (we had many mysql errors with it) …. I want everything to stay fairly stock as apple installed it but just recompile in the same place with the needed extensions. Anyone?

    #367026
    abugera
    Participant

    [QUOTE][u]Quote by: visualinventor[/u]

    I want to recompile the mac PHP binaries to include the GD and pdf lib libraries … I want all the standard paths (apple installed paths) to stay in place. Can anyone give me a tutorial on this or point me to one. I have searched and searched for an updated tutorial but I haven’t found anything even close.

    I installed the entorpy.ch packages and that was only marginally successful (we had many mysql errors with it) …. I want everything to stay fairly stock as apple installed it but just recompile in the same place with the needed extensions. Anyone?

    [/QUOTE]

    I will assume that your installed PHP is 4.4.x if you are running OS X 10.4.7

    You will need to install both libpng and libjpg in order to build PHP with it’s built in GD support. I would suggest getting these from “Darwin Ports”.

    http://darwinports.opendarwin.org/

    Read the instructions carefully on how to use the port command.

    Then grab PHP 4.4.4 or better from

    http://www.php.net/downloads.php

    In terminal use the php -i command to outline your current install. For example:

    php -i >~/Desktop/php-before-upgrade.txt

    You should see some text to the effect of “./configure –mandir=/usr/share/man –infodir=/usr/share/info” it will have the options quoted out. You will have to run ./configure again and use all the same options adding –with-gd.

    There are detailed instructions on the php.net site.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed