10.1 chroot issue with /usr/bin/env : No such file or directory
by goldennuggets from LinuxQuestions.org on (#5FV9J)
I've been working my way through 10.1
When it came time to chroot, I got the following error:
Code:chroot "$LFS" /usr/bin/env HOME=/root TERM="$TERM" PS1='(lfs chroot) \u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login +h
chroot: failed to run command /usr/bin/env': No such file or directorySo, after some research, I finally came across this:
http://www.linuxfromscratch.org/lfs/...y-no-such-file
I ran the following command with the output:
Code:readelf -l /mnt/lfs/usr/bin/env | grep interpreter
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]The FAQ doesn't really explain what needs done at this point, since mine does not point to "/tools/lib/ld-linux.so.2" and the FAQ says that it doesn't exist yet.
I'm confused and would appreciate a little help, clarification, and ideas on how to correct the issue.


When it came time to chroot, I got the following error:
Code:chroot "$LFS" /usr/bin/env HOME=/root TERM="$TERM" PS1='(lfs chroot) \u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login +h
chroot: failed to run command /usr/bin/env': No such file or directorySo, after some research, I finally came across this:
http://www.linuxfromscratch.org/lfs/...y-no-such-file
I ran the following command with the output:
Code:readelf -l /mnt/lfs/usr/bin/env | grep interpreter
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]The FAQ doesn't really explain what needs done at this point, since mine does not point to "/tools/lib/ld-linux.so.2" and the FAQ says that it doesn't exist yet.
I'm confused and would appreciate a little help, clarification, and ideas on how to correct the issue.