Esta hoja sirve como ayuda para compilar e instalar MySQL y PHP5 en IHS sobre AIX.
Asegurarse de que estos paquetes estén instalados, de lo contrario se pueden descargar del IBM Toolbox
gcc, libgcc, cpp, flex, bison, libxml2, libxml2-devel, zlib-devel, readline-devel, make, gunzip, tar
Ser super usuario (root)
mkdir software cd software wget -c "http://www.php.net/distributions/php-5.2.6.tar.gz"
tar -zxvf php-5.2.6.tar.gz
./configure --prefix=/product/php --with-apxs2=/product/IBM/HTTPServer/bin/apxs
Al querer ver la version del apache marca error
/product/IBM/HTTPServer/bin/httpd -v exec(): 0509-036 Cannot load program /product/IBM/HTTPServer/bin/httpd because of the following errors: 0509-150 Dependent module libaprutil-0.so could not be loaded. 0509-022 Cannot load module libaprutil-0.so. 0509-026 System error: A file or directory in the path name does not exist.
Exportar la variable de entorno LIBPATH
export LIBPATH=/product/IBM/HTTPServer/lib
For future AIX users trying to compile PHP with MySQL. The 64-bit version of MySQL does not currently work. The 32-bit version will allow configure to complete successfully.
Este post tiene fecha 2007-12-05. |