库版本问题,7.3.2,php,redhat linux [英] library version problem, 7.3.2, php, redhat linux

查看:49
本文介绍了库版本问题,7.3.2,php,redhat linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我很困惑。


我有两个系统。一个是redhat 7.1(colo中的服务器,合理地说是当前的b $ b),另一个是8.0(我的笔记本电脑)。 colo中的服务器正在运行

postgresql 7.3.2以及redhat'更新版本的apache和php for

7.1(php版本为4.1.2)on这台服务器,php可以毫不费力地访问postgres



我的笔记本电脑也运行7.3.2以及带有

RH 8.0。我发现有必要提出apache所以我可以测试一些php对抗

postgresql,并且惊讶地发现它失败了(它已经有一段时间

自从我会在这个系统上运行Web服务器)。审查

/ var / log / httpd / error_log显示如下:


[Thu Sep 11 16:17:25 2003] [通知]抓住了SIGTERM,关闭

PHP警告:无法加载动态库''/usr/lib/php4/pgsql.so''

- libpq.so.2:无法打开共享对象文件:没有这样的文件或目录

在第0行的Unknown中


这似乎显然是一个库版本问题,因为

" ls -l / usr / lib / libpq *"给我


-rw-r - r-- 1 root root 113800 2003年2月5日/usr/lib/libpq.a

lrwxrwxrwx 1 root root 12月26日14:19 /usr/lib/libpq.so - > libpq.so.3.0

lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 - > libpq.so.3.0

-rwxr-xr-x 1 root root 552967 7月28日18:30 /usr/lib/libpq.so.3.0

[root @heperper lib]#


i记得我安装时libpq.so.2有问题消失

7.3.2,我不得不重新编译exim MTA因为我有它使用

postgresql,但我不记得php有这些问题。


所以为什么php-> postgresql访问正在工作7.1系统但不是

8.0系统?


谢谢,

richard

-

Richard Welty rw****@averillpark.net

Averill Park网络518-573-7592

Java,PHP,PostgreSQL,Unix,Linux,IP网络工程,安全

--------- ------------------(广播结束)---------------------------

提示1:订阅和取消订阅命令转到<小时ef =mailto:ma ******* @ postgresql.org> ma ******* @ postgresql.org

解决方案

2003年9月11日星期四,Richard Welty写道:

好吧,我很困惑。

我有两个系统。一个是redhat 7.1(服务器在colo,合理地当前),另一个是8.0(我的笔记本电脑)。 colo中的服务器正在运行
postgresql 7.3.2以及redhat的更新版本的apache和php for
7.1(php版本是4.1.2)在这台服务器上,php可以访问postgres <没有困难。

我的笔记本电脑也运行7.3.2以及与RH 8.0一起使用的apache和php。我发现有必要提出apache所以我可以测试一些php对抗postgresql,并且很惊讶发现它失败了(它已经有一段时间
因为我会运行web服务器在这个系统上)。审核
/ var / log / httpd / error_log显示以下内容:

[Thu Sep 11 16:17:25 2003] [notice]抓住了SIGTERM,关闭了
PHP警告:无法加载动态库''/usr/lib/php4/pgsql.so''
- libpq.so.2:无法打开共享对象文件:没有这样的文件或目录
在Unknown中就行了0

这似乎显然是一个库版本问题,如
< ls -l / usr / lib / libpq *"给了我

-rw-r - r-- 1 root root 113800 2003年2月5日/usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Jun 26 14:19 / usr /lib/libpq.so - > libpq.so.3.0
lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 - > libpq.so.3.0
-rwxr-xr-x 1 root root 552967 7月28日18:30 /usr/lib/libpq.so.3.0
[root @ skipper lib]#




唔不太好。抱怨是发现PostgreSQL的PHP​​接口并不是
。至于为什么找不到我真的无法帮助。可能是PHP

配置/构建,可能是它没有安装。有点令人惊讶,但是

然后我对Redhat安装几乎一无所知。

-

Nigel J. Andrews

---------------------------(广播结束)--------------- ------------

提示5:您查看了我们广泛的常见问题解答吗?

http://www.postgresql.org/docs/faqs/FAQ.html


2003年9月11日星期四,Richard Welty写道:

好吧,我很困惑。
我有两个系统。一个是redhat 7.1(服务器在colo,合理地当前),另一个是8.0(我的笔记本电脑)。 colo中的服务器正在运行
postgresql 7.3.2以及redhat的更新版本的apache和php for
7.1(php版本是4.1.2)在这台服务器上,php可以访问postgres <没有困难。

我的笔记本电脑也运行7.3.2以及与RH 8.0一起使用的apache和php。我发现有必要提出apache所以我可以测试一些php对抗postgresql,并且很惊讶发现它失败了(它已经有一段时间
因为我会运行web服务器在这个系统上)。审核
/ var / log / httpd / error_log显示以下内容:

[Thu Sep 11 16:17:25 2003] [notice]抓住了SIGTERM,关闭了
PHP警告:无法加载动态库''/usr/lib/php4/pgsql.so''
- libpq.so.2:无法打开共享对象文件:没有这样的文件或目录
在Unknown中就行了0

这似乎显然是一个库版本问题,如
< ls -l / usr / lib / libpq *"给了我

-rw-r - r-- 1 root root 113800 2003年2月5日/usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Jun 26 14:19 / usr /lib/libpq.so - > libpq.so.3.0
lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 - > libpq.so.3.0
-rwxr-xr-x 1 root root 552967 7月28日18:30 /usr/lib/libpq.so.3.0
[root @ skipper lib]#




唔不太好。抱怨是发现PostgreSQL的PHP​​接口并不是
。至于为什么找不到我真的无法帮助。可能是PHP

配置/构建,可能是它没有安装。有点令人惊讶,但是

然后我对Redhat安装几乎一无所知。

-

Nigel J. Andrews

---------------------------(广播结束)--------------- ------------

提示5:您查看了我们广泛的常见问题解答吗?

http://www.postgresql.org/docs/faqs/FAQ.html


在星期五,2003-09-12在07:21,Nigel J. Andrews写道:

2003年9月11日星期四,Richard Welty写道:



....

[Thu Sep 11 16:17:25 2003] [notice]抓住SIGTERM,关闭PHP警告:无法加载动态库''/usr/lib/php4/pgsql.so''
- libpq.so.2:无法打开共享对象文件:没有这样的文件或目录<在第0行的未知中

这似乎显然是一个图书馆版本ning问题,如
ls -l / usr / lib / libpq *给了我

-rw-r - r-- 1 root root 113800 2003年2月5日/usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Jun 26 14:19 / usr /lib/libpq.so - > libpq.so.3.0
lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 - > libpq.so.3.0
-rwxr-xr-x 1 root root 552967 7月28日18:30 /usr/lib/libpq.so.3.0
[root @ skipper lib]#



不太好。抱怨是找不到PostgreSQL的PHP​​接口。




如果我正确理解错误信息,它看起来好像是

/usr/lib/php4/pgsql.so链接到libpq.so.2,它不存在。

你需要一个针对更新的postgresql构建的php版本。


-

Oliver Elphick Ol ************ @ lfix.co.uk

怀特岛,英国 http://www.lfix.co.uk/oliver

GPG:1024D / 3E1D0C1C:CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C

================================= =======

让邪恶的人放弃他的方式,而不义的男人则是他的想法;让他回到耶和华面前,他将怜悯他;而且对于我们的上帝来说,因为他会非常宽恕。以赛亚书55:7

---------------------------(广播结束)------ ---------------------

提示8:解释分析是你的朋友


ok, i''m confused.

i have two systems. one is redhat 7.1 (a server in colo, reasonably
current), the other is 8.0 (my laptop). the server in colo is running
postgresql 7.3.2 along with redhat''s updated versions of apache and php for
7.1 (the php version is 4.1.2) on this server, php can access postgres
without difficulty.

my laptop is also running 7.3.2 along with the apache and php that go with
RH 8.0. i found a need to bring up apache so i could test some php against
postgresql, and was suprised to find that is failing (it''d been a while
since i''d run the web server on this system). reviewing
/var/log/httpd/error_log showed the following:

[Thu Sep 11 16:17:25 2003] [notice] caught SIGTERM, shutting down
PHP Warning: Unable to load dynamic library ''/usr/lib/php4/pgsql.so''
- libpq.so.2: cannot open shared object file: No such file or directory
in Unknown on line 0

this seems to clearly be a library versioning problem, as
"ls -l /usr/lib/libpq*" gives me

-rw-r--r-- 1 root root 113800 Feb 5 2003 /usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Jun 26 14:19 /usr/lib/libpq.so -> libpq.so.3.0
lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 -> libpq.so.3.0
-rwxr-xr-x 1 root root 552967 Jul 28 18:30 /usr/lib/libpq.so.3.0
[root@skipper lib]#

i remember having problems with libpq.so.2 disappearing when i installed
7.3.2, and i had to recompile the exim MTA because i have it using
postgresql, but i don''t remember php having these issues.

so why would php->postgresql access be working on the 7.1 system but not
the 8.0 system?

thanks,
richard
--
Richard Welty rw****@averillpark.net
Averill Park Networking 518-573-7592
Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

解决方案

On Thu, 11 Sep 2003, Richard Welty wrote:

ok, i''m confused.

i have two systems. one is redhat 7.1 (a server in colo, reasonably
current), the other is 8.0 (my laptop). the server in colo is running
postgresql 7.3.2 along with redhat''s updated versions of apache and php for
7.1 (the php version is 4.1.2) on this server, php can access postgres
without difficulty.

my laptop is also running 7.3.2 along with the apache and php that go with
RH 8.0. i found a need to bring up apache so i could test some php against
postgresql, and was suprised to find that is failing (it''d been a while
since i''d run the web server on this system). reviewing
/var/log/httpd/error_log showed the following:

[Thu Sep 11 16:17:25 2003] [notice] caught SIGTERM, shutting down
PHP Warning: Unable to load dynamic library ''/usr/lib/php4/pgsql.so''
- libpq.so.2: cannot open shared object file: No such file or directory
in Unknown on line 0

this seems to clearly be a library versioning problem, as
"ls -l /usr/lib/libpq*" gives me

-rw-r--r-- 1 root root 113800 Feb 5 2003 /usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Jun 26 14:19 /usr/lib/libpq.so -> libpq.so.3.0
lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 -> libpq.so.3.0
-rwxr-xr-x 1 root root 552967 Jul 28 18:30 /usr/lib/libpq.so.3.0
[root@skipper lib]#



Well not quite. The complaint is that the PHP interface to PostgreSQL isn''t
found. As for why it can''t be found I can''t really help. Could be PHP
configure/build, could be it wasn''t installed. A little surprising perhaps but
then I know next to nothing about Redhat installations.
--
Nigel J. Andrews
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


On Thu, 11 Sep 2003, Richard Welty wrote:

ok, i''m confused.

i have two systems. one is redhat 7.1 (a server in colo, reasonably
current), the other is 8.0 (my laptop). the server in colo is running
postgresql 7.3.2 along with redhat''s updated versions of apache and php for
7.1 (the php version is 4.1.2) on this server, php can access postgres
without difficulty.

my laptop is also running 7.3.2 along with the apache and php that go with
RH 8.0. i found a need to bring up apache so i could test some php against
postgresql, and was suprised to find that is failing (it''d been a while
since i''d run the web server on this system). reviewing
/var/log/httpd/error_log showed the following:

[Thu Sep 11 16:17:25 2003] [notice] caught SIGTERM, shutting down
PHP Warning: Unable to load dynamic library ''/usr/lib/php4/pgsql.so''
- libpq.so.2: cannot open shared object file: No such file or directory
in Unknown on line 0

this seems to clearly be a library versioning problem, as
"ls -l /usr/lib/libpq*" gives me

-rw-r--r-- 1 root root 113800 Feb 5 2003 /usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Jun 26 14:19 /usr/lib/libpq.so -> libpq.so.3.0
lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 -> libpq.so.3.0
-rwxr-xr-x 1 root root 552967 Jul 28 18:30 /usr/lib/libpq.so.3.0
[root@skipper lib]#



Well not quite. The complaint is that the PHP interface to PostgreSQL isn''t
found. As for why it can''t be found I can''t really help. Could be PHP
configure/build, could be it wasn''t installed. A little surprising perhaps but
then I know next to nothing about Redhat installations.
--
Nigel J. Andrews
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


On Fri, 2003-09-12 at 07:21, Nigel J. Andrews wrote:

On Thu, 11 Sep 2003, Richard Welty wrote:


....

[Thu Sep 11 16:17:25 2003] [notice] caught SIGTERM, shutting down
PHP Warning: Unable to load dynamic library ''/usr/lib/php4/pgsql.so''
- libpq.so.2: cannot open shared object file: No such file or directory
in Unknown on line 0

this seems to clearly be a library versioning problem, as
"ls -l /usr/lib/libpq*" gives me

-rw-r--r-- 1 root root 113800 Feb 5 2003 /usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Jun 26 14:19 /usr/lib/libpq.so -> libpq.so.3.0
lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 -> libpq.so.3.0
-rwxr-xr-x 1 root root 552967 Jul 28 18:30 /usr/lib/libpq.so.3.0
[root@skipper lib]#



Well not quite. The complaint is that the PHP interface to PostgreSQL isn''t
found.



If I understand the error message correctly, it looks as though
/usr/lib/php4/pgsql.so is linked to libpq.so.2, which does not exist.
You need a version of php built against a more recent postgresql.

--
Oliver Elphick Ol************@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Let the wicked forsake his way, and the unrighteous
man his thoughts; and let him return unto the LORD,
and He will have mercy upon him; and to our God, for
he will abundantly pardon." Isaiah 55:7
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


这篇关于库版本问题,7.3.2,php,redhat linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆