libpq.so.4: cannot open shared object file

CentOS, PostgreSQL Add comments

Ok, last hurdle (I hope) for the CentOS migration:

If you get

Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory

starting Apache2 on CentOS, possibly after having installed later versions of Postgresql and forcing some compat-postgresql-libs, you might proceed like this:

yum remove apr-util

(this will remove httpd / Apache2 also)

then:

yum install httpd

(this will reinstall apr-util and [hopefully] fix the dependencies).

I got the hint from here, regarding the libpq dependencies:

http://bugs.gentoo.org/show_bug.cgi?id=231324#c1

YMMV

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

3 Responses to “libpq.so.4: cannot open shared object file”

  1. John Schmidt Says:

    Great post. Fixed the issue.

  2. marpen Says:

    good informations ..

  3. Bits And Pix » Apache: libpq.so.4 cannot open shared object file (postgres) Says:

    [...] Source [...]

Leave a Reply