加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – 为postgres Ubuntu安装pdo

发布时间:2020-12-13 16:45:20 所属栏目:百科 来源:网络整理
导读:我试图启用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/postg
我试图启用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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读