追加编译mbstring
cd /tmp/php-5.2.14/ext/mbstring/# 调用phpize程序生成编译配置文件
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/tcrm/php/bin/php-config
make && make install
pdo_pgsql
进入php的源码安装包里(/tmp/php-5.X.X)进入到ext/pdo_pgsql目录。编译pdo_pgsql扩展# cd /tmp/php-5.4.7/ext/pdo_pgsql# /usr/local/php/bin/phpize# ./configure –with-php-config=/usr/local/php/bin/php-config# make &&make install添加扩展名称
extension=pdo_pgsql.so
注意:1、执行“# ./configure –with-php-config=/usr/local/php/bin/php-config”步骤时如果出现如下错误提示,需要执行该命令“# yum install postgresql-devel”安装postgresql开发版。错误提示:checking for PostgreSQL support for PDO… yes, sharedchecking for pg_config… not foundconfigure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path bywoiit.net