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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何在Clojure中的xml树上组合来自zip-filter查询的结果?
- c# – 从后面的代码将变量传递给javascript函数
- ruby-on-rails – Rails:用Null对象模式替换try
- ruby-on-rails – 登录视图位于Devise-Rails 3
- ajax原理 XmlHttpRequest对象 【AJAX 实例】
- ruby-on-rails – PG ::错误:错误:关系schema_migrations
- C++ 中使用lambda代替 unique_ptr 的Deleter的方法
- 指针所需的基本帮助(双重间接)
- 基于vue.js无缝滚动效果
- Oracle EBS 常用查询 - 价格表查询