Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On Sun 11 Nov 2012 11:05:59 AM CST, Chris Staub wrote: > On 11/10/2012 09:22 PM, yan wrote: >> On Sat 10 Nov 2012 11:09:08 PM CST, Chris Staub wrote: >>> On 11/10/2012 10:05 AM, yan wrote: I also get a problem at this point chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h /tools/bin/env: /tools/bin/bash: Permission denied root@cpu:/home/yan/lfs# ll /tools/bin/env -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter [Requesting program interpreter: /tools/lib/ld-linux.so.2] I don't have any idea to solve it >>> >>> Type "ls -la /tools/bin/bash" >> thank you for the prompt >> it's ok when i add +x permission for all file in directory /tools/bin/ >> > It is not ok, since that should never be necessary. You could continue > on if you want to, but note that since you still don't know why it > actually failed, there's no telling if you will have more problems later on. thank you I will keep this in mind -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On 11/10/2012 09:22 PM, yan wrote: > On Sat 10 Nov 2012 11:09:08 PM CST, Chris Staub wrote: >> On 11/10/2012 10:05 AM, yan wrote: >>> I also get a problem at this point >>> >>> chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' >>> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h >>> /tools/bin/env: /tools/bin/bash: Permission denied >>> >>> >>> root@cpu:/home/yan/lfs# ll /tools/bin/env >>> -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* >>> >>> root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter >>> [Requesting program interpreter: /tools/lib/ld-linux.so.2] >>> >>> I don't have any idea to solve it >> >> Type "ls -la /tools/bin/bash" > thank you for the prompt > it's ok when i add +x permission for all file in directory /tools/bin/ > It is not ok, since that should never be necessary. You could continue on if you want to, but note that since you still don't know why it actually failed, there's no telling if you will have more problems later on. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On Sat 10 Nov 2012 11:09:08 PM CST, Chris Staub wrote: > On 11/10/2012 10:05 AM, yan wrote: >> I also get a problem at this point >> >> chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' >> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h >> /tools/bin/env: /tools/bin/bash: Permission denied >> >> >> root@cpu:/home/yan/lfs# ll /tools/bin/env >> -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* >> >> root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter >> [Requesting program interpreter: /tools/lib/ld-linux.so.2] >> >> I don't have any idea to solve it > > Type "ls -la /tools/bin/bash" thank you for the prompt it's ok when i add +x permission for all file in directory /tools/bin/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On Sat 10 Nov 2012 11:09:08 PM CST, Chris Staub wrote: > On 11/10/2012 10:05 AM, yan wrote: >> I also get a problem at this point >> >> chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' >> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h >> /tools/bin/env: /tools/bin/bash: Permission denied >> >> >> root@cpu:/home/yan/lfs# ll /tools/bin/env >> -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* >> >> root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter >> [Requesting program interpreter: /tools/lib/ld-linux.so.2] >> >> I don't have any idea to solve it > > Type "ls -la /tools/bin/bash" thank you for the prompt it's ok when i add +x permission for all file in directory /tools/bin/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On 11/10/2012 10:05 AM, yan wrote: > I also get a problem at this point > >chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' > PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h > /tools/bin/env: /tools/bin/bash: Permission denied > > > root@cpu:/home/yan/lfs# ll /tools/bin/env > -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* > > root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter > [Requesting program interpreter: /tools/lib/ld-linux.so.2] > > I don't have any idea to solve it Type "ls -la /tools/bin/bash" -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
I also get a problem at this point chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h /tools/bin/env: /tools/bin/bash: Permission denied root@cpu:/home/yan/lfs# ll /tools/bin/env -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter [Requesting program interpreter: /tools/lib/ld-linux.so.2] I don't have any idea to solve it -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On Nov 9, 2012, at 3:51 PM, Yuan Cao wrote: chroot: failed to run command `/tools/bin/env': No such file or directory. Do this: readelf -e /tools/bin/env | grep interpreter It should output the interpreter in /tools/lib or /tools/lib64 and not the host's /lib or /lib64. Sincerely, William Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
Yuan Cao wrote: > Hello, > > I have an error when I tried to execute the first chroot script: > > chroot "$LFS" /tools/bin/env -i \ > HOME=/root \ > TERM="$TERM"\ > PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ > /tools/bin/bash --login +h > > When executing it, I encounters the following error: > > chroot: failed to run command `/tools/bin/env': No such file or directory. > > I have double checked the symlink of /tools and it still targets > /mnt/lfs/tools. I also looked over the instructions in 6.1 - 6.3, and I > could not find a mention on creating the /tools/bin/env directory. > > Should I just use mkdir to create a /tools/bin/env directory, or am I > missing a step? You are missing a step. /tools/bin/env is a binary, not a directory. Recheck your coreutils installation in Chapter 5. Also, you said you checked the symlink, but let us know the output of: $ ls -l /tools $ ls -l /mnt/lfs/tools -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page