Here is my solution for a PPC based Xserve with 10.4.x:
Installing php5 with sybase-ct on Mac OS 10.4.x server and apache 1.3.x
Install latest version of: dev tools, x11, fink and finkcommander
Use the mysql admin tool to install needed mysql files.
Download the latest source of: FreeTDS, PHP5.x
./configure –prefix=/usr/local/freetds
make
make install
The GD image processing module is a bit trickier, however. The GD libraries are bundled with PHP 4.3+, but GD is dependent on a few other libraries: zlib, libjpeg, libpng, and libtiff. You can now use Fink to install libraries with a single command. For example, here?s how you install libjpeg, libpng, and libtiff:
sudo -s
/sw/bin/fink install libjpeg
/sw/bin/fink install libtiff
/sw/bin/fink install libpng3 #### or whatever version is current
/sw/bin/apt-get -q0 -f install compress-zlib-pm581
/sw/bin/fink install libxml2
/sw/bin/apt-get -q0 -f install t1lib1
/sw/bin/apt-get -q0 -f install freetype
/sw/bin/apt-get -q0 -f install fvwm-common
/sw/bin/apt-get -q0 -f install gd-bin
configure php5
./configure –prefix=/usr/local/php5/ –with-zlib-dir=/usr/local –with-config-file-scan-dir=/usr/local/php5/php.d –with-sybase-ct=/usr/local/freetds –with-jpeg-dir=/sw –with-png-dir=/sw –with-gd –with-mysql=/usr/local/mysql –with-mysql=/sw –with-libxml-dir=/sw –with-curl=/usr –with-apxs –enable-ftp –enable-sockets –enable-zip –with-iodbc=/usr –enable-shared=max
Done.
Comments are closed