Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

httpd won't start because libpq.so.4 is missing

Posted on 2009-07-08
4
Medium Priority
?
1,882 Views
Last Modified: 2013-12-16
I had to power cycle my Redhat system and now I can't get httpd to start. Here is what happens when I try "service httpd start":

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


First off, libpq.so.4 sounds like a postgres library. I do have PostsreSQL installed, but I dont' know what it has to do with apache.

How can I fix this? I only use apache to forward traffic to other ports depending on what domain the user is coming to the site with. I don't recall ever adding any special modules, so I'm totally confused as to why apache is complaining about a postgres library.

I tried "yum remove httpd" then "yum install httpd" then I copied back my httpd.conf and tried to start it again, but that didn't fix anything.

FWIW, postgres itself doesn't seem to be having any problems.
0
Comment
Question by:HappyEngineer
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
dinokhan earned 2000 total points
ID: 24811664
0
 

Author Comment

by:HappyEngineer
ID: 24820799
I eventually worked around it by getting an rpm for httpd and using rpm --nodeps to make it ignore dependencies when installing. When I ran it, it complained about a missing *.so file, but I just created a soft link to a newer version of that file and it ran like a charm.

If yum just had a --nodeps argument then I would have been up and running a long time ago.

Stupid dependency systems.
0
 
LVL 2

Expert Comment

by:dinokhan
ID: 24829152
some time its helpfull
0
 

Expert Comment

by:richelieuhq
ID: 25583376
yum update apr-util
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question