Added a few comments here and there
[linux_from_scratch.git] / FAQ-OBSOLETE / any-no-such-file.xml
blob6088c2451a1ed5b680e69bb2516e019bdfd0596d
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
6 </screen></para>
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.
11 For example:
12 <screen>file $LFS/static/bin/bash</screen>
13 If it doesn't say something about "statically linked",
14 there is a problem.
15 </para>
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.
21 </para></answer>
22 </qandaentry>