LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-27-2015, 12:37 AM   #1
anc6802
LQ Newbie
 
Registered: Mar 2005
Location: Schenectady, NY
Distribution: Ubuntu 15.04, 15.04 server, 12.04 server,
Posts: 11

Rep: Reputation: 0
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.

Last edited by anc6802; 09-27-2015 at 12:52 AM. Reason: Adding more information
 
Old 09-27-2015, 03:28 AM   #2
Mihail Zenkov
LQ Newbie
 
Registered: Sep 2015
Location: Belarus, Vitebsk
Distribution: LFS
Posts: 19

Rep: Reputation: Disabled
Try 'ldd /lib/libbz2.so.1.0'.
 
1 members found this post helpful.
Old 09-27-2015, 08:38 AM   #3
anc6802
LQ Newbie
 
Registered: Mar 2005
Location: Schenectady, NY
Distribution: Ubuntu 15.04, 15.04 server, 12.04 server,
Posts: 11

Original Poster
Rep: Reputation: 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.
 
Old 09-27-2015, 09:51 AM   #4
Mihail Zenkov
LQ Newbie
 
Registered: Sep 2015
Location: Belarus, Vitebsk
Distribution: LFS
Posts: 19

Rep: Reputation: Disabled
'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
 
1 members found this post helpful.
Old 09-27-2015, 02:20 PM   #5
anc6802
LQ Newbie
 
Registered: Mar 2005
Location: Schenectady, NY
Distribution: Ubuntu 15.04, 15.04 server, 12.04 server,
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 09-27-2015, 02:30 PM   #6
Mihail Zenkov
LQ Newbie
 
Registered: Sep 2015
Location: Belarus, Vitebsk
Distribution: LFS
Posts: 19

Rep: Reputation: Disabled
Try mount it as root user.
 
Old 09-27-2015, 03:29 PM   #7
anc6802
LQ Newbie
 
Registered: Mar 2005
Location: Schenectady, NY
Distribution: Ubuntu 15.04, 15.04 server, 12.04 server,
Posts: 11

Original Poster
Rep: Reputation: 0
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!

Last edited by anc6802; 09-27-2015 at 03:31 PM.
 
Old 09-27-2015, 03:48 PM   #8
Mihail Zenkov
LQ Newbie
 
Registered: Sep 2015
Location: Belarus, Vitebsk
Distribution: LFS
Posts: 19

Rep: Reputation: Disabled
In chapter 6 you should be careful - your host system can be broken if you run 'make install' without chroot.
 
2 members found this post helpful.
Old 02-15-2019, 11:19 AM   #9
invinciblycool
LQ Newbie
 
Registered: Jan 2019
Posts: 24

Rep: Reputation: Disabled
@anc6802 How did you solve the error then? Thanks.
 
Old 02-24-2019, 06:11 AM   #10
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Rep: Reputation: 15
Got the same issue after 15 years.... It's NOW year 2019, Feburary.
 
Old 03-04-2019, 02:20 PM   #11
RoLoR
Member
 
Registered: Feb 2018
Posts: 60

Rep: Reputation: Disabled
Quote:
Originally Posted by invinciblycool View Post
@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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bzip2: (stdin) is not a bzip2 file. error Aqua_Regia Linux - Newbie 16 09-18-2020 02:37 AM
ERROR :bzip2: (stdin) is not a bzip2 file. error k84834 Linux - Newbie 1 08-12-2012 08:11 AM
chapter 6, want to use bzip2 but it fails with bash: bzip2: No such file or directory nomad5000 Linux From Scratch 2 10-12-2009 08:58 PM
Error 1 to install bzip2 1.0.5 Ahava Linux - Software 2 08-25-2009 02:39 PM
bzip2: i got twice data intergrity error kpachopoulos Linux - General 3 11-30-2005 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration