1 <qandaentry id="any-no-such-file">
2 <question><para>No such file or directory</para></question>
3 <answer><para>Examples of this error are:
4 <screen>/usr/bin/env: /static/bin/bash: No such file or directory
5 gcc: No such file or directory
7 <para>They usually occur when trying to enter
8 (or shortly after entering) chroot in Chapter 6,
9 and are caused by trying to run a dynamically linked binary at that point.
10 You can check by running file on the binary.
12 <screen>file $LFS/static/bin/bash</screen>
13 If it doesn't say something about "statically linked",
16 <para>The solution is to go back to Chapter 5,
17 delete and re-extract the source if you haven't already,
18 and recompile the affected package.
19 And this time, take extra care with the instructions
20 for compiling it statically.