Comple PHP 5.2.14 With PDO Support

analog-computing-machine

8 point releases behind, I’ve finally recompiled and installed php on a system running Solaris 10.

./configure --prefix=/usr/local/php5 --with-config-file-path=/etc/php5 
--with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/opt/csw 
--with-xpm-dir=/opt/csw --with-gd --with-jpeg-dir=/opt/csw 
--with-png-dir=/opt/csw --with-freetype-dir=/opt/csw --enable-exif 
--with-zlib-dir=/opt/csw --enable-mbstring --with-ldap=/opt/csw 
--with-ldap-sasl=/opt/csw --with-curl=/opt/csw --with-openssl=/opt/csw 
--enable-dbase --with-mysql=shared,/opt/csw/mysql5 
--with-mysqli=shared,/opt/csw/mysql5/bin/mysql_config 
--enable-pdo=shared --with-pdo-mysql=shared,/opt/csw/mysql5/bin/mysql_config 
--enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared

Modify php.ini

extension=pdo.so
extension=pdo_mysql.so