"libexpat.so.5" not found

Lars Eighner eighner at io.com
Sun Apr 30 10:31:24 UTC 2006


On Sun, 30 Apr 2006, dharam paul wrote:

> I am getting folloing error while I try to start
> apache :
> /libexec/ld-elf.so.1: Shared object "libexpat.so.5"
> not found, required by "http
>                   d"
> /usr/local/sbin/apachectl start: httpd could not be
> started
> usage: /usr/local/sbin/apachectl
> (start|stop|restart|fullstatus|status|graceful|
>                                      configtest|help)
>
> Help please,
> dp

The most likely cause of this is that you have upgraded to some version of
FreeBSD 6.  In that case, the quick fix is to install the compat5x port in
misc.  Be sure to update your ports tree before attempting this.  This
is the first thing to try if you must get your server up immediately.

The alternative is to update your ports tree and then use portupgrade to
reinstall ALL installed ports.  This is the right way when you are sure
you ports tree is in sync with your version of the OS, but it can be a long
process even with a fast machine.

If you did not upgrade to 6.x, you may have upgrade expat incorrectly (if
memory serves), which might have happened if you used portupgrade to install
or upgrade one of its many dependencies.  Check the UPDATING file in the
ports tree for information on correctly upgrading expat2.

Possibly you installed apache from a binary that does not match your system.
This should not have been possible, but oversights sometimes occur.

It is impossible to be more specific without (at least) the following
information:

1) What version of FreeBSD you are running (i.e. output of uname -a).
2) Did this version of apache ever work on your system?
3) Have you upgraded the system?
4) Have you used portupgrade to install something that might depend on
expat?
5) Have you recently upgraded your port tree?  Are you sure your port tree
is appropriate for the version of the system you are using.

-- 
Lars Eighner
eighner at io.com  lars at larseighner.com
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266



More information about the freebsd-questions mailing list