我无法安装pdo_pgsql.so以在PHP中使用PostgreSQL [英] I cannot install pdo_pgsql.so to use PostgreSQL in PHP
问题描述
我有一个使用PostgreSQL数据库的站点,但是我发现我的RHEL 5系统缺少pdo_pgsql.so文件.我花了几个小时尝试安装它,但这是不可能的.
I have a site that use PostgreSQL database but I found that my RHEL 5 system lacks of pdo_pgsql.so file. I have spent several hours trying to install it but it was impossible.
在Internet上找到许多RPM时使用"rpm -i"命令时,总是遇到依赖关系问题.
When using "rpm -i" command with a lot RPMs found in Internet, I always got dependencies problems.
我在此处发布之前发出的最后一条命令是:
Last command I have issued before posting here was:
rpm -i http://yum.postgresql.org/9.1/redhat/rhel-5-i386/pgdg-redhat91-9.1-5.noarch.rpm
该命令的输出为:软件包pgdg-redhat91-9.1-5已安装
The output to that command was: package pgdg-redhat91-9.1-5 is already installed
事实上,PostgreSQL数据库已启动并正在运行.唯一缺少的文件是pdo_pgsql.so.
And in fact, PostgreSQL database is up and running. The only missing file is pdo_pgsql.so.
我已经使用查找./-name pdo_pgsql.so"来查看该文件是否在磁盘上,但是没有成功.
I have used "find . / -name pdo_pgsql.so" to see if that file is somewhere in the disk, but without success.
能给我指出正确的方向吗?
Can you point me to the right direction, please?
这些是相关版本:
- psql(PostgreSQL)9.1.2
- PHP 5.3.27(cli)(内置:2013年12月8日19:01:03)
- 服务器版本:Apache/2.4.1(Unix)
- 红帽企业Linux服务器版本5(Tikanga)
欢呼海梅
推荐答案
我使用Postgres支持选项重新编译了最新的PHP版本,此问题已解决.但是,这很奇怪,因为我以前使用过postgres的PHP版本.对于某些原因,它停止了工作,
I have recompiled last PHP version with Postgres support option and the problem was solved. However, it is strange, because version of PHP I had before worked with postgres. For some reaon, it stopped working,
这篇关于我无法安装pdo_pgsql.so以在PHP中使用PostgreSQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!