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:
Everything was going good until I got to the step where I am supposed to chroot
$ chroot /mnt/gentoo /bin/bash
Which returns an error:
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
$ 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
$ ln -s /lib64/libreadline.so.6 libreadline.so.6
This might help you guys, but it sure confused me. ldd /bin/bash returns:
# ldd /bin/bash
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)
So even ldd sees the library in question. I am stumped.