LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2013, 03:27 PM   #1
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Rep: Reputation: 3
chroot error during attempted gentoo install


I've been trying to sort this issue out on my own for a little while now with no luck. I am following instructions on how to install gentoo from a liveDVD environment based on the this link:

http://dev.gentoo.org/~neddyseagoon/HOWTO_DVD11.xml

Everything was going good until I got to the step where I am supposed to chroot


Code:
$ chroot /mnt/gentoo /bin/bash
Which returns an error:

Code:
Gentoo-20121221 packages # chroot /mnt/gentoo /bin/bash
/bin/bash: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
This does not make any sense to me because I ran

Code:
$ find / | grep libreadline.so*
Which shows that not only does libreadline.so.6 exist, it exists in both /lib32 and /lib64. So I edited /etc/ld.so.conf to include /lib64/libreadlin.so.6 and /lib32/libreadline.so.6 then I ran ldconfig. However none of this is correcting my issue. Suggestions?

*Edit I would have used locate instead of that ugly find command, but locate doesn't work on the liveDVD for some reason.

And I forgot to mention I tried a quick and dirty

Code:
$ ln -s /lib64/libreadline.so.6 libreadline.so.6
This might help you guys, but it sure confused me. ldd /bin/bash returns:

Code:
# ldd /bin/bash
	linux-vdso.so.1 (0x00007fff18bff000)
	libreadline.so.6 => /lib64/libreadline.so.6 (0x00007f9f3f510000)
	libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f9f3f2bc000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f9f3f0b8000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f9f3ed0f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9f3f757000)
So even ldd sees the library in question. I am stumped.

Last edited by flyinggeorge; 05-18-2013 at 03:50 PM.
 
Old 05-18-2013, 05:33 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 934

Rep: Reputation: 104Reputation: 104
Sorry, didn't understand why you're not using the official Gentoo installation walkthrough?
The link to the guide you posted is completely different from the official walkthrough. Maybe I didn't understand that you're not trying to just install Gentoo but doing something completely different?
Cheers
 
Old 05-18-2013, 05:35 PM   #3
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Original Poster
Rep: Reputation: 3
I was just trying to avoid downloading the stage3 tarball as my internet connection is ungodly slow and it would take several hours. But this has also taken me several hours...so maybe I should start downloading the stage3. If you can't beat 'em, join 'em.
 
Old 05-18-2013, 05:48 PM   #4
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 815

Rep: Reputation: 254Reputation: 254Reputation: 254
Maybe I'm missing something, but don't you need the libraries in "/mnt/gentoo/lib" and "/mnt/gentoo/lib64" in order for "chroot" to work?
 
Old 05-18-2013, 05:59 PM   #5
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 934

Rep: Reputation: 104Reputation: 104
Quote:
If you can't beat 'em, join 'em.

And btw., your guide refers to Gentoo 2011 - that's very old and a few basic things have changed in the meanwhile (e.g. OpenRC or the location of "make.conf"), so it would really be better if you would follow the official guide... .

Cheers!
 
Old 05-18-2013, 06:55 PM   #6
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Pearlseattle View Post

And btw., your guide refers to Gentoo 2011 - that's very old and a few basic things have changed in the meanwhile (e.g. OpenRC or the location of "make.conf"), so it would really be better if you would follow the official guide... .

Cheers!
I was able to account for all the minor changes in file-names/locations, but I have started downloading the current amd64 stage3 tarball. ~3hrs remaining.

As for the person above who commented that you shouldn't need libraries for chroot, it seemed that /bin/bash was being called on and somehow returning the error. I could be wrong about that but it seems like bash was acting up. Based on the error:

Code:
/bin/bash: error while loading shared libraries:
Which is also extremely confusing because I am using bash in the terminal. And just to verify typing the command "bash" returns no errors. I have given up on this.
 
Old 05-18-2013, 07:14 PM   #7
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 934

Rep: Reputation: 104Reputation: 104
Quote:
I have started downloading the current amd64 stage3 tarball. ~3hrs remaining.
I can't believe it - so, you're downloading with more or less 18KB/s?
Respect.
How does that happen? In the middle of the mexican desert? On board of a submarine?
Cheers
 
Old 05-18-2013, 07:32 PM   #8
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 159

Original Poster
Rep: Reputation: 3
No, I am not in a Mexican desert or submarine, I am using my phone as a mobile hot spot. And I only get 500mb of 4G the rest is unlimited, but at 2G speed. Which isn't even what I would call internet. This is what I was trying to avoid. lol I'm only 48% done downloading like two hours later. It's awful.
 
Old 05-18-2013, 08:13 PM   #9
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 934

Rep: Reputation: 104Reputation: 104
Well, then I'm sorry that I didn't even try to dig deeper into your problem :P . But as you said solving that problem might have required even more time.
I hope that you'll have enough patience later to download as well the "portage" file, which is if I remember correctly around 60MBs... .
 
  


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
apt-get install error in CHROOT hamd Linux - Newbie 2 04-13-2011 06:24 AM
exec: 431: chroot not found, kernel panic, Attempted to kill init! WalGrom Linux - Software 0 12-11-2005 02:37 PM
chroot'ing problem in Gentoo Stage 1 Install logosys Linux - Distributions 6 07-18-2005 01:10 PM
Gentoo install chroot; Should is say livecd / ? revenge80200 Linux - General 5 02-25-2005 10:37 AM
Gentoo 1.4 install chroot help vdogvictor Linux - Newbie 12 04-09-2004 09:19 PM


All times are GMT -5. The time now is 06:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration