Solved

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

Posted on 2009-07-08
4
1,863 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 500 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now