* [gentoo-user] chroot: cannot run command `/bin/bash'
@ 2006-07-22 11:45 oskar kapala
2006-07-22 12:51 ` William Kenworthy
2006-07-23 0:39 ` Matthias Bethke
0 siblings, 2 replies; 4+ messages in thread
From: oskar kapala @ 2006-07-22 11:45 UTC (permalink / raw
To: gentoo-user
Hi,
I unmerged glibc, I know it's stupid, by I did it. I know how to solve
the problem, but sth is wrong with chroot:
I boot from liveCD 2006.0 (my arch is x86) and:
mount all my filesytem into /mnt/gentoo as a new root
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
a I get:
chroot: cannot run command `/bin/bash': No such file or directory
of course file is present, executable, and I'm doing it as su...
I found some posts connected with problem, but I still can't solve it.
I have experience with such things, becouse I unmerged pam-login and
forgot to merge shadow before reboot :)
Thanks,
oskar
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] chroot: cannot run command `/bin/bash'
2006-07-22 11:45 oskar kapala
@ 2006-07-22 12:51 ` William Kenworthy
2006-07-23 0:39 ` Matthias Bethke
1 sibling, 0 replies; 4+ messages in thread
From: William Kenworthy @ 2006-07-22 12:51 UTC (permalink / raw
To: gentoo-user
moriah ~ # ldd /bin/bash
linux-gate.so.1 => (0xffffe000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7f28000)
libdl.so.2 => /lib/libdl.so.2 (0xb7f23000)
libc.so.6 => /lib/libc.so.6 (0xb7dec000)
/lib/ld-linux.so.2 (0xb7f84000)
moriah ~ # equery belongs /lib/libc.so.6
[ Searching for file(s) /lib/libc.so.6 in *... ]
sys-libs/glibc-2.3.6-r4 (/lib/libc.so.6 -> libc-2.3.6.so)
moriah ~
so bash needs glibc!
Your best bet would be to locate a glibc bin package (from the
livecd?)and untar it in / of your system, then it should work enough to
rebuild properly. You could just copy in the missing libs as you
discover them, but thats probably going to be worse :(
BillK
On Sat, 2006-07-22 at 13:45 +0200, oskar kapala wrote:
> Hi,
>
> I unmerged glibc, I know it's stupid, by I did it. I know how to solve
> the problem, but sth is wrong with chroot:
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] chroot: cannot run command `/bin/bash'
2006-07-22 11:45 oskar kapala
2006-07-22 12:51 ` William Kenworthy
@ 2006-07-23 0:39 ` Matthias Bethke
1 sibling, 0 replies; 4+ messages in thread
From: Matthias Bethke @ 2006-07-23 0:39 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 645 bytes --]
Hi oskar,
on Saturday, 2006-07-22 at 13:45:01, you wrote:
> chroot: cannot run command `/bin/bash': No such file or directory
>
> of course file is present, executable, and I'm doing it as su...
You should be fine if ou follow William's instructions. The reason for
this is the error the linker returns to execve(2):
| ENOENT The file filename or a script or ELF interpreter does not
| exist, or a shared library needed for file or inter-
| preter cannot be found.
cheers!
Matthias
--
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] chroot: cannot run command `/bin/bash'
[not found] <a9fb46230607230520w44fcdca5y7d991cf4bf0f6b0d@mail.gmail.com>
@ 2006-07-23 16:48 ` oskar kapala
0 siblings, 0 replies; 4+ messages in thread
From: oskar kapala @ 2006-07-23 16:48 UTC (permalink / raw
To: gentoo-user
Hi,
William Kenworthy napisał(a):
>
> so bash needs glibc!
>
Sure :)
> Your best bet would be to locate a glibc bin package (from the
> livecd?)and untar it in / of your system, then it should work enough to
> rebuild properly. You could just copy in the missing libs as you
> discover them, but thats probably going to be worse :(
I copied whole /mnt/liveCD/lib to my /mnt/gentoo/lib and chroot is
working now, but revdep-rebuilt is doing nothing. IMHO some reverse
dependencies are broken....
The worst thing is that emerge glibc faild
Output is:
(...)
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
!!! ERROR: sys-libs/glibc-2.3.6-r4 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
glibc-2.3.6-r4.ebuild, line 1128: Called toolchain-glibc_src_compile
glibc-2.3.6-r4.ebuild, line 215: Called glibc_do_configure 'linuxthreads'
glibc-2.3.6-r4.ebuild, line 905: Called die
!!! failed to configure glibc
!!! If you need support, post the topmost build error, and the call
stack if relevant.
BTW: I'm new on the mailing list, such this one: so I'm not sure how
to reply to concrete post. I'm using gmail - I send an ordinary email
to gentoo-user@gentoo.org. Please correct me if I'm doing sth wrong...
Thanks for help,
oskar
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-23 16:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <a9fb46230607230520w44fcdca5y7d991cf4bf0f6b0d@mail.gmail.com>
2006-07-23 16:48 ` [gentoo-user] chroot: cannot run command `/bin/bash' oskar kapala
2006-07-22 11:45 oskar kapala
2006-07-22 12:51 ` William Kenworthy
2006-07-23 0:39 ` Matthias Bethke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox