Apache: libpq.so.4 cannot open shared object file (postgres)

March 24th, 2010 by jeremychone

After installing postgresql, you might have issues to start apache

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

One way to solve this issue, is to reinstall apache and apr-util.

#remove apache and apr-util
yum remove apr-util
#reinstall apache
yum install httpd

Source

Leave a Reply