[lfs-support] Link to libbz2.so

Bruce Dubbs bruce.dubbs at gmail.com
Fri Aug 24 09:34:25 PDT 2012

Feuerbacher, Alan wrote:
> Hi,
> In the LFS book, version SVN-20120824, section 6.19.Bzip2-1.0.6,
> there is a line near the end:
> ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
> The problem I've experienced is that when bzip2 fires up after this
> compilation step, it can't find the library libbz2.so.1.0 . When I
> make another link like this:
> ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so.1.0
> everything works fine when bzip2 is executed, i.e., libbz2.so.1.0 is
> found.

The file should be in /lib, not /usr/lib.  You may have to run ldconfig 
first.  The link should not be needed.

$ ldd /bin/bzip2
         linux-gate.so.1 (0xffffe000)
         libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb778b000)
         libc.so.6 => /lib/libc.so.6 (0xb75da000)
         /lib/ld-linux.so.2 (0xb77b4000)

   -- Bruce

More information about the lfs-support mailing list