Why do I get libdb.so.2 cannot open shared object file messages with Redhat 8.0?

Red Hat no longer supply libdb1 as part of libc so it will be neccessary to install it if you receive the message above. It's supplied in the gnome-libs package in the official Red Hat release, and instructions on how to extract and install it are given below, assuming you don't want the rest of the Gnome libraries installed on your web-server.

Alternatively, a third party binary RPM is available or you can compile it from source. Instructions for each of these methods are given below.

Binary from the official gnome-libs RPM

Fetch the gnome-libs rpm from your favourite mirror, CD or from:

\# ftp://ftp.redhat.com/pub/redhat/linux/8.0/en/os/i386/RedHat/RPMS/ \\ gnome-libs-1.4.1.2.90-22.i386.rpm

Copy it to a working directory, and run:

\# cat gnome-libs-1.4.1.2.90.22.i386.rpm | rpm2cpio | pax -r

This will extract the contents of the rpm into the current directory. As root, copy the library to /usr/local/lib, and create the required link:

\# cp ./usr/lib/libdb1.so.2 /usr/local/lib \# cd /usr/local/lib \# ln -sf libdl1.so.2 libdb.so.2

Ensure that /etc/ld.so.conf contains "/usr/local/lib", and run ldconfig:

\# grep /usr/local/lib /etc/ld.so.conf || \\ echo "/usr/local/lib" >> /etc/ld.so.conf \# ldconfig

ZWS should now work correctly.

Binary from third-party db1 RPM

This is available from:

http://www.megaloman.com/~hany/RPM/doors2.4/jr/db1-1.85-0.3.i386.html

be downloaded and installed using rpm in the usual way. This hasn't been tested but an examination of the symbols exported by the provided libdb1.so.2 indicates that this should work.

Direct from source

The original Berkley DB source us available from:

http://dev.sleepycat.com/downloads/releasehistorybdb.html

At the time of writing there are five patches which you may need to apply to the tarball. Check the website for details.

Content Manager [Administrator] 12 August 2005 Bookmark with del.icio.us Post this article to Digg Post this article to reddit Post this article to Facebook Tweet this article  

Recently...

Other Resources