Build CVS version on AIX 5.1 (Tools required)

From: Date: Fri, 20 Dec 2002 10:04:53 +0000
Subject: Build CVS version on AIX 5.1 (Tools required)
Groups: php.qa 
Request: Send a blank email to php-qa+get-7357@lists.php.net to get a copy of this message
To build from CVS you need to install from source some previous versions of the install tools : ================================================================================ BUILD ENVIRONMENT ================================================================================ AIX 5100-03 (32bit) Previus version -----> Needed version
autoconf-2.53-1 --->    2.13
automake-1.5-1 --->     1.5
flex-2.5.4a-4 ----> OK as supplied from IBM Linux Toolbox
bison-1.28-5    ---->   OK as supplied from IBM Linux Toolbox
libtool-1.4.2-1 -----> 1.4 binutils-2.9.aix51.020209-1 ---> OK as supplied from IBM Linux Toolbox gcc-2.9.aix51.020209-1 ---> OK as supplied from IBM Linux Toolbox Important tricks!! 1) remove /usr/bin/m4 link to /usr/ccs/bin/m4 and install GNU m4 1.4 2) Avoid gd from Ibm or bull precompiled and use php bundled gd 3) If some build goes wrong try to use gmake instead of make 4) During make install (DSO build) it fails to create libs/libphp4.so and so it cannot copy it to apache/libexec dir : you must copy it manually : cp -p ./.libs/libphp4.so.0 /apache_dir/libexec/libphp4.so
Installing PHP SAPI module [activating module `php4' in /etc/opt/freeware/apache/httpd.conf] cp libs/libphp4.so /opt/freeware/apache/libexec/libphp4.so cp: libs/libphp4.so: A file or directory in the path name does not exist. apxs:Break: Command failed with rc=1 make: 1254-004 The error code from the last command is 1.
5) If this copy fails, stop apache, clean the shared libs whit the "slibclean" command and retry to copy. ================================================================================ PHP CONFIGURATION ================================================================================
./configure        \
        --enable-track-vars       \
        --enable-magic-quotes     \
        --with-zlib=/opt/freeware       \
        --enable-bcmath \
        --with-gd       \
        --with-ttf=/opt/freeware           \
        --with-xpm-dir=/opt/freeware           \
        --with-png-dir=/opt/freeware    \
        --with-zlib-dir=/opt/freeware    \
        --with-jpeg-dir=/opt/freeware   \
        --with-apxs=/opt/freeware/apache/sbin/apxs \
        --with-mysql=/opt/freeware


« previous php.qa (#7357) next »