On Tue, Feb 11, 2003 at 01:06:37PM -0400, Derek Broughton wrote:
From: "Ivan Uemlianin" <iau@ukfsn.org>
I had a perfectly good Apache installation; broke it (by accident) and
hacked a fix. But I'd like to know what happened and how to fix it
properly.
The error I was getting is:
debian:/# apache
apache: error while loading shared libraries: libdb.so.2: cannot open
shared object file: No such file or directory
If I recall the original email correctly, you almost had the right
fix. The problem is that libdb.so.2 is supposed to be a generic link
for version 2 of the library to the specific version 2 library that
was installed. For example (and I know I don't have the numbers
exactly correct) you said you had libdb.so.2.1.0 - that's the release
of the version 2 library that was installed.
You should have symbolically linked libdb.so.2 to libdb.so.2.1.0 - I
think you linked it to the version 3 library (libdb.so.3.x.y) which
might work in most cases, and might always work for your particular
program. However, changing a major version number implies an interface
change, or at least some incompatibility with the previous version.
I'm not surprised that uninstalling a package doesn't restore the
link, but as Ivan said, reinstalling should restore the link as that
will be one of the post-install operations.
HTH