[xml/sgml-pkgs] Bug#442292: Bug#442292:
Justin M. Keyes
justinkz at gmail.com
Tue Sep 18 02:34:01 UTC 2007
On 9/17/07, Mike Hommey <mh at glandium.org> wrote:
> On Mon, Sep 17, 2007 at 01:02:02PM -0400, Justin M. Keyes <justinkz at gmail.com> wrote:
> > On 9/17/07, Mike Hommey <mh at glandium.org> wrote:
> > > Try something like strace -eopen -f update-mime-database 2>&1 | grep libz.so
> > > and check where libz.so is taken from.
> > > If it's not taken in /usr/lib or /lib, then you're likely to have a
> > > broken LD_LIBRARY_PATH and/or a spurious libz.so somewhere else.
> > $ strace -eopen -f update-mime-database 2>&1 | grep libz.so
> > open("/usr/local/lib/libz.so.1", O_RDONLY) = 3
> > $ echo $LD_LIBRARY_PATH
> > [empty]
> > $ ls /usr/local/lib/libz.so.1 -l
> > lrwxrwxrwx 1 root staff 13 2007-03-03 07:09 /usr/local/lib/libz.so.1
> > -> libz.so.1.2.3
> > $ ls /usr/lib/libz.so.1 -l
> > lrwxrwxrwx 1 root root 15 2007-07-16 13:28 /usr/lib/libz.so.1 -> libz.so.188.8.131.52
> > There is also a directory called /usr/local/lib/site_ruby which holds
> > the ruby gems stuff, so I'm guessing this issue is somehow related to
> > installing ruby gems and *not* using apt (apt gems is broken, but I
> > digress).
> > So, it appears this issue may be my fault, but I'm clueless as to how
> > to fix it. This link warns against setting $LD_LIBRARY_PATH:
> > http://linuxmafia.com/faq/Admin/ld-lib-path.html
> > Should I set the soft link at /usr/local/lib/libz.so.1 to point to
> > /usr/lib/libz.so.184.108.40.206 (seems a tenuous solution)?
> The simplest and most correct solution would be to remove all libz.so*
> files from /usr/local/lib.
That suggestion is supported by the discussion at bug #440394:
> > How would installing ruby gems have caused gnome programs to prefer
> > /usr/local/lib over /usr/lib ? How can I reverse that effect?
> /etc/ld.so.conf.d/libc.conf is responsible for this.
So the problem is that some outdated or incompatible lib(s) was
installed in /usr/local/lib by a (e.g.) "make install" that I did
somewhere along the line. And based on bug #440394, it is correct
behavior to search /usr/local/lib before /usr/lib.
Mike, thanks for your help.
Justin M. Keyes
More information about the debian-xml-sgml-pkgs