PHP下添加pdo_pgsql扩展
时间:2021-07-01 10:21:17
帮助过:2人阅读
先安装pgsql客户端yum install postgresql-develphp-5.4.13的源码包放在:/usr/local/src/php-5.4.13编译pdo_pgsql扩展# cd /usr/local/src//php-5.4.13/ext/pdo_pgsql
# /usr/local/php-5.4.13/bin/phpize
# ./configure –with-php-config=/usr/local/php-5.4.13/bin/php-config
# make
# make install设置php.ini# vim /usr/local/php/etc/php.ini添加扩展名称extension=pdo_pgsql.so重启php至此完成php扩展的安装注意: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 by woiit.NET
本文出自 “梦想照进现实” 博客,请务必保留此出处http://lookingdream.blog.51cto.com/5177800/1941423
PHP下添加pdo_pgsql扩展
标签:php 模块