我试图启用pdo驱动程序为我的php安装,但当我runn命令
./configure --prefix=/usr/local/webserver/php --with-apxs2=/usr/local/webserver/apache2/bin/apxs --enable-mbstring --enable-intl --with-icu-dir=/usr --with-pgsql=/usr/local/webserver/postgres --with-pdo-pgsql=/usr/local/webserver/postgres
我得到
"Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required"
我在该目录中安装postgresql
/usr/local/webserver/postgres
我安装postgresql 9.0.4.1使用bin包和使用php 5.3
Pecl PDO包现已废弃。顺便说一下,debian软件包php5-pgsql现在包括常规和PDO驱动程序,所以只是:
apt-get install php5-pgsql
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。