On Wed, Jun 28, 2017 at 11:14:40AM -0400, Bhaskar Verma wrote: > I'm going through LFS book Version 8.0 on Ubuntu 15.04 x64 Host > > Everything was going smooth till chapter 6.27 Iana-Etc-2.30 > > Just after I completed the previous topic Psmisc-22.21, I tried to extract > iana-etc-2.30.tar.bz2 but then all of a sudden I can't > > It says: bzip2: error while loading shared libraries: libbz2.so.1.0: cannot > open shared object file: No such file or directory > > Before this, every step and tests were fine without any error. and suddenly > this... > > What should I do
I think something went wrong in bzip2 (6.18). That might seem a long while ago, but nowadays bz2 is not used for many of the tarballs in LFS (gz works everywhere, xz may offer better compression). So iana-etc is the first .tar.bz2 package after installing bzip2 in chapter 6. Unfortunately, bzip2 is not a plain configure, make, make install - The initial install doesn't install the shared build of bzip2, nor the shared library, so we run a series of commands. And we install the shared libbz2.so* files into /lib. I think something went wrong when you created the symlinks - ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so Possibly you missed that line, or made a typo. So ls -l {,/usr}/lib/libbz2.so* This is what I've got on an old system, I'm sure your results differ: ken@plexi ~ $ls -l {,/usr}/lib/libbz2.so* lrwxrwxrwx 1 root root 15 Aug 28 2016 /lib/libbz2.so.1.0 -> libbz2.so.1.0.6 -rwxr-xr-x 1 root root 235472 Aug 28 2016 /lib/libbz2.so.1.0.6 lrwxrwxrwx 1 root root 23 Aug 28 2016 /usr/lib/libbz2.so -> ../../lib/libbz2.so.1.0 ĸen -- I live in a city. I know sparrows from starlings. After that everything is a duck as far as I'm concerned. -- Monstrous Regiment -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style