Hello Michael, Thanks for your reply. Here is the output: -rwxr-xr-x 1 root root 930472 Dec 13 22:58 /tools/bin/bash
and: GNU bash, version 4.2.39(1)-release (x86_64-unknown-linux-gnu) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. I am running it as root but I am not sure if I entered root the correct way. From my daily user I typed "sudo -i" and entered my root password. The command "su -" didn't work for me because I do not know the root user password (which should be different from MY root/sudo password). In addition, if it may pertain in any way, the LFS partition is on a 4GB USB flash drive. On Fri, Dec 14, 2012 at 7:46 PM, Michael E. Maher <mich...@maheronline.co.uk > wrote: > Hello Alex, > > Could you send the output of: > $ ls -l /tools/bin/bash > $ /tools/bin/bash --version > Might be a permissions problem. > > Also are you running the 'chroot' command as the root user? > > > Thanks, > Michael > > > On Fri, 2012-12-14 at 19:22 -0500, Alexander Spitzer wrote: > > Hello all, > > > > > > I am on section 6.4, entering the chroot environment, in LFS Book 7.2 > > and when i attempt to chroot I get the following error: > > /tools/bin/env: /tools/bin/bash: No such file or directory > > > > > > This seems to be not too rarely encountered problem but all > > the diagnostic checks that I've found seem to be okay: > > > > > > The sanity check gives the following: > > [Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2] > > > > > > Running readelf -e /tools/bin/env | grep interpreter gives the > > following: > > [Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2] > > > > > > I read about a "specs" patch for gcc that is related to this problem, > > but I could not find it in this version of the book. I could not find > > a specs file in the host directory either. > > > > > > This problem is very bizarre to me because there is definitely a bash > > binary in /tools/bin. > > > > > > If anyone can point me in the right direction or try to help me > > understand what is going on, that would be great. > > > > > > Thanks, > > Alex > >
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page