LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chroot error during attempted gentoo install (https://www.linuxquestions.org/questions/linux-newbie-8/chroot-error-during-attempted-gentoo-install-4175462507/)

flyinggeorge 05-18-2013 02:27 PM

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.

Pearlseattle 05-18-2013 04:33 PM

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

flyinggeorge 05-18-2013 04:35 PM

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.

Erik_FL 05-18-2013 04:48 PM

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?

Pearlseattle 05-18-2013 04:59 PM

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!

flyinggeorge 05-18-2013 05:55 PM

Quote:

Originally Posted by Pearlseattle (Post 4953960)
:)
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.

Pearlseattle 05-18-2013 06:14 PM

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? :eek:
Respect.
How does that happen? In the middle of the mexican desert? On board of a submarine?
Cheers

flyinggeorge 05-18-2013 06:32 PM

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.

Pearlseattle 05-18-2013 07:13 PM

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... .


All times are GMT -5. The time now is 12:58 AM.