Hi All
I've been trying to install PHP with the GD library, without success!
This is what I've tried, if anyone spots anything out-of-the-ordinary, I'd appreciate it being pointed out as I've run out of options...the numbered sections 1-6 are different attempts at the PHP ./configure line and the relevant results.
tar zxvf freetype-2.0.9.tar.gz
mv freetype-2.0.9 freetype2
cd freetype2
./configure
make
make install
tar zxvf zlib-1.1.4.tar.gz
mv zlib-1.1.4 zlib
cd zlib
./configure
make
make install
tar zxvf libpng-1.2.5.tar.gz
mv libpng-1.2.5 libpng
cd libpng
cp -p scripts/makefile.linux ./Makefile
make
make install
tar zxvf gd-2.0.11.tar.gz
mv gd-2.0.11 gd
cd gd
./configure
make
make install
tar zxvf php-4.3.1.tar.gz
cd php-4.3.1
(1) ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-gd=/usr/local/gd
--with-freetype-dir=/usr/local/freetype2 --with-png-dir=/usr/local/libpng --with-zlib=/usr/local/zlib
[configure error: Cannot find libz]
(2) ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-gd=/usr/local/gd
--with-freetype-dir=/usr/local/freetype2 --with-png-dir=/usr/local/libpng --with-zlib=/usr/local
[configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/gd]
(3) ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-gd=/usr/local
--with-freetype-dir=/usr/local/freetype2 --with-png-dir=/usr/local/libpng --with-zlib=/usr/local
[no configure errors]
make && make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP SAPI module
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
chmod 755 /usr/local/apache/libexec/libphp4.so
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
rm /usr/local/apache/conf/httpd.conf.new
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
/usr/local/php-4.3.1/sapi/cli/php: error while loading shared libraries: unexpected reloc type 0x03
make[1]: [install-pear-installer] Error 127
make: [install-pear] Error 2
(4) make clean
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-gd
--with-freetype-dir=/usr/local/freetype2 --with-png-dir=/usr/local/libpng --with-zlib=/usr/local
[no configure errors]
make
make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP SAPI module
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
chmod 755 /usr/local/apache/libexec/libphp4.so
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
rm /usr/local/apache/conf/httpd.conf.new
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
make[1]: [install-pear-installer] Segmentation fault (core dumped)
make: [install-pear] Error 2
(5) make distclean
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-gd --with-freetype-dir=/usr/local
--with-png-dir=/usr/local --with-zlib=/usr/local
make
make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP SAPI module
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
chmod 755 /usr/local/apache/libexec/libphp4.so
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
rm /usr/local/apache/conf/httpd.conf.new
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
make[1]: [install-pear-installer] Segmentation fault (core dumped)
make: [install-pear] Error 2
(6) then rebuilt freetype2 with --enable-shared and rebuilt zlib with --shared and swapped comments:
#ZLIBLIB=/usr/local/lib
#ZLIBINC=/usr/local/include
ZLIBLIB=../zlib
ZLIBINC=../zlib
for
ZLIBLIB=/usr/local/lib
ZLIBINC=/usr/local/include
#ZLIBLIB=../zlib
#ZLIBINC=../zlib
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-gd=/usr/local/
--with-png-dir=/usr/local/png/ --with-zlib-dir=shared
[no configure errors]
make
make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP SAPI module
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
chmod 755 /usr/local/apache/libexec/libphp4.so
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
rm /usr/local/apache/conf/httpd.conf.new
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
/usr/local/php-4.3.1/sapi/cli/php: error while loading shared libraries: unexpected reloc type 0x40
make[1]: [install-pear-installer] Error 127
make: [install-pear] Error 2
cheers
Rob