On Fri, 23 Mar 2001, Lyle Johnson wrote:

> > [phil@kawa i686-linux]$ pwd
> > /usr/local/lib/ruby/1.6/i686-linux
> > [phil@kawa i686-linux]$ ldd xmlparser.so
> >         libexpat.so.0 => not found
> >         libc.so.6 => /lib/libc.so.6 (0x40011000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
>
> Well, this is Linux telling you that xmlparser.so depends on three other
> shared libraries (libexpat.so, libc.so and ld-linux.so) but it can't find
> one of them (libexpat.so) in its search path. And since (according to your
> original post) you've installed libexpat.so in /usr/local/lib, I'll bet you
> can set LD_LIBRARY_PATH to point there:
>
>     export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
>
> and be a happier person for it. If this works, either add the above line to
> your .bashrc file (or whatever's appropriate for your setup). I think you
> can also modify /etc/ld.config but I've never done it that way. Check the
> man pages for "ld" for the rest of the story.

Yay, it works!

I added the folder '/usr/local/lib' to /etc/ld.so.conf, and then I ran
ldconfig as root to rebuild /etc/ld.so.cache.

Thanks to Dave & Lyle & Kent for their help.

I promise my next question will be a Ruby question. :-)

Phil Suh
Wiser in the way of ldconfig.