[lfs-support] lfs-support Digest, Vol 2719, Issue 1

Yuan Cao yuancao85 at gmail.com
Mon Nov 12 14:11:03 PST 2012


>
> Message: 5
> Date: Fri, 09 Nov 2012 16:02:54 -0600
> From: Bruce Dubbs <bruce.dubbs at gmail.com>
> Subject: Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
> To: LFS Support List <lfs-support at linuxfromscratch.org>
> Message-ID: <509D7D8E.7080807 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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
>
> Hello,

Output for ls -l /tools & ls -l /mnt/lfs/tools:

lrwxrwxrwx 1 root root 14 Oct 23 16:04 /tools -> /mnt/lfs/tools
ls: cannot access /mnt/lfs/tools: No such file or directory

With ls -al /mnt/lfs:

drwxr-xr-x   5 root root 4096 Nov  9 12:44 .
drwxr-xr-x   4 root root 4096 Oct 26 10:12 ..
drwxr-xr-x  18 root root 4180 Nov  9 18:15 dev
dr-xr-xr-x 177 root root    0 Nov  9 09:34 proc
drwxr-xr-x  13 root root    0 Nov  9 09:34 sys

It certainly explains why it could not find it.


> ------------------------------
>
> Message: 6
> Date: Fri, 9 Nov 2012 16:07:30 -0600
> From: William Harrington <berzerkula at cox.net>
> Subject: Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
> To: LFS Support List <lfs-support at linuxfromscratch.org>
> Message-ID: <3695BE1C-CF9E-458F-84EB-1575F5C1BDF8 at cox.net>
> Content-Type: text/plain; charset="us-ascii"
>
>
> 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
>
>
> Output for that is:

readelf: Error: '/tools/bin/env': No such file.

Best Regards,

Yuan Cao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20121112/ba09fda0/attachment.html>


More information about the lfs-support mailing list