I am trying to build Linux from Scratch per LFS website
While I was able to install all the packages until 6.7.1 without any error, I am stuck at Installation of Linux API headers (This is after I chroot into the installation) with the error,
/bin/sh: /tools/bin/sed: No such file or directory
Now I checked if, the file exists and I found it does.
ls -all /tools/bin/sed
-rwxr-xr-x 1 root root 260350 Aug 7 20:27 /tools/bin/sed
exists in the installation, and I found it does.
If I try executing sed, I get the error.
/bin/sh: /tools/bin/sed: No such file or directory
Trying to find the type of file sed is, I get
file /tools/bin/sed
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.24
I notice that the for part in sed is different from other files in /tools/bin which have for GNU/Linux 2.6.25
What am I missing here?
sed
. It turns out that/bin/sh
itself is the problem. It may be a symlink to a missing file or something... tryfile /bin/sh
and try to replace it with a link for/bin/bash
– Bichoy Aug 08 '13 at 02:56ldd /tools/bin/sed
. – jordanm Aug 08 '13 at 03:25sed
file? – Stéphane Chazelas Aug 08 '13 at 04:37This is what I get, my guess is I am missing the symlink for the last file ?
– veepsk Aug 08 '13 at 05:14