Thursday, July 01, 2010

PHP compile on CentOS 5 (oci8 + pdo-oci + pdo-mysq)

First, the pre-requisites, in order to get a nice ./configure & make going:

yum install php-mysql mysql mysql-server httpd-devel mod_php php-soap libxml2-devel \
openssl-devel curl-devel libpng-devel libmcrypt-devel mysql-devel libxslt-devel \
libtool libtool-ltdl libtool-ltdl-devel


And then, the ./configure specifics:

./configure --prefix=/usr/local/php-5.2.3 \
--with-gd --with-jpeg-dir=/usr/lib --with-zlib --with-png-dir=/usr/lib --with-apxs2=/usr/sbin/apxs \
--with-curl --with-ldap=shared --enable-bcmath --with-xsl --enable-sockets --with-mcrypt --enable-soap \
--with-gettext --with-pear=/usr/share/pear --with-openssl --enable-zip --enable-ftp --with-oci8=$ORACLE_HOME \
--with-pdo-oci=$ORACLE_HOME --with-pdo-mysql=mysqlnd

Labels: , , ,

0 Comments:

Post a Comment

<< Home