LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Bzip2 error (https://www.linuxquestions.org/questions/linux-from-scratch-13/bzip2-error-4175554614/)

anc6802 09-27-2015 12:37 AM

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.

Mihail Zenkov 09-27-2015 03:28 AM

Try 'ldd /lib/libbz2.so.1.0'.

anc6802 09-27-2015 08:38 AM

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.

Mihail Zenkov 09-27-2015 09:51 AM

'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

anc6802 09-27-2015 02:20 PM

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?

Mihail Zenkov 09-27-2015 02:30 PM

Try mount it as root user.

anc6802 09-27-2015 03:29 PM

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!

Mihail Zenkov 09-27-2015 03:48 PM

In chapter 6 you should be careful - your host system can be broken if you run 'make install' without chroot.

invinciblycool 02-15-2019 11:19 AM

@anc6802 How did you solve the error then? Thanks.

jiapei100 02-24-2019 06:11 AM

Got the same issue after 15 years.... It's NOW year 2019, Feburary.

RoLoR 03-04-2019 02:20 PM

Quote:

Originally Posted by invinciblycool (Post 5962487)
@anc6802 How did you solve the error then? Thanks.

That poster was last seen on December 2015. I think he restarted from scratch.
Quote:

Originally Posted by anc6802
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.



All times are GMT -5. The time now is 02:59 PM.