postgresql – 为postgres Ubuntu安装pdo

前端之家收集整理的这篇文章主要介绍了postgresql – 为postgres Ubuntu安装pdo前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图启用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
原文链接:https://www.f2er.com/postgresql/193410.html

猜你在找的Postgre SQL相关文章