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
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to