Bzip2 error
I'm in chapter 6 and I was trying to open a .bz2 archive and I got this error:
bzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory I checked and the libbz2.so.1.0 is found in /usr/lib and /lib aswell. All of the commands have been entered in correctly from the subdirectory that I extracted the zip file from. ldconfig -v produced this (shortened for content) /usr/local/lib: /lib: libresolv.so.2 -> libresolv-2.21.so libnss_dns.so.2 -> libnss_dns-2.21.so libcrypt.so.1 -> libcrypt-2.21.so libthread_db.so.1 -> libthread_db-1.0.so libpcprofile.so -> libpcprofile.so libcap.so.2 -> libcap.so.2.24 librt.so.1 -> librt-2.21.so libSegFault.so -> libSegFault.so libm.so.6 -> libm-2.21.so libcidn.so.1 -> libcidn-2.21.so libnss_nis.so.2 -> libnss_nis-2.21.so libdl.so.2 -> libdl-2.21.so libacl.so.1 -> libacl.so.1.1.0 libBrokenLocale.so.1 -> libBrokenLocale-2.21.so libncursesw.so.5 -> libncursesw.so.5.9 libnss_compat.so.2 -> libnss_compat-2.21.so libnss_files.so.2 -> libnss_files-2.21.so libnsl.so.1 -> libnsl-2.21.so libutil.so.1 -> libutil-2.21.so libpthread.so.0 -> libpthread-2.21.so libnss_nisplus.so.2 -> libnss_nisplus-2.21.so ld-linux-x86-64.so.2 -> ld-2.21.so libanl.so.1 -> libanl-2.21.so libc.so.6 -> libc-2.21.so libattr.so.1 -> libattr.so.1.1.0 libnss_hesiod.so.2 -> libnss_hesiod-2.21.so libbz2.so.1.0 -> libbz2.so.1.0.6 libz.so.1 -> libz.so.1.2.8 libmemusage.so -> libmemusage.so libnss_db.so.2 -> libnss_db-2.21.so There are no errors that relate to libbz2 are listed. ldd /bin/bzip2 produces the following: (shortened for content) root:/sources/bzip2-1.0.6# ldd /bin/bzip2 linux-vdso.so.1 (0x00007ffec5ddc000) libbz2.so.1.0 => not found libc.so.6 => /tools/lib/libc.so.6 (0x00007ff8dbd56000) /tools/lib64/ld-linux-x86-64.so.2 (0x00007ff8dc0f9000) the host system is running ubuntu 15.04 on a core 2 duo lenovo thinkpad g550. I'm doing a 64-bit systemd installation if that helps any. If anyone has any suggestions please let me know. |
Try 'ldd /lib/libbz2.so.1.0'.
|
Here is the output of "ldd /lib/libbz2.so.1.0"
root:/sources/bzip2-1.0.6# ldd /lib/libbz2.so.1.0 linux-vdso.so.1 (0x00007ffcfe5f5000) libc.so.6 => /lib/libc.so.6 (0x00007ffaca648000) /lib64/ld-linux-x86-64.so.2 (0x00007ffacabfb000) There are no errors, but its linking to the newer version. |
'ldd /bin/bzip2' also should show linking to newer version.
Probably, you do something wrong on this step: http://www.linuxfromscratch.org/lfs/...adjusting.html |
My laptop hung up when I woke it up from sleep and I had to reboot the laptop and I tried to mount everything again and it now wants a password to access the other partition where lfs is?? I never set one! It looks like I'm going to have to complete start over again! All of that wasted hours compiling!
Is there away around the password that I never set or am I completely screwed? |
Try mount it as root user.
|
Somehow the host system is messed up, terminal doesn't load properly, and there are several system errors after I login, but I was able to get to the lfs partition again. I'm just going to start over, cause if the host is screwed up I'm sure lfs is too. I just wont put the laptop to sleep anymore and just leave it running.
But thanks for all your help! |
In chapter 6 you should be careful - your host system can be broken if you run 'make install' without chroot.
|
@anc6802 How did you solve the error then? Thanks.
|
Got the same issue after 15 years.... It's NOW year 2019, Feburary.
|
Quote:
Quote:
|
All times are GMT -5. The time now is 02:59 PM. |