bash-inst.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <sect2>
  2. <title>Installation of Bash</title>
  3. <para>
  4. Install Bash by running the following commands:
  5. </para>
  6. <blockquote><literallayout>
  7. <userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
  8. <userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin
  9. --with-curses &amp;&amp;</userinput>
  10. <userinput>make &amp;&amp;</userinput>
  11. <userinput>make install &amp;&amp;</userinput>
  12. <userinput>cd $LFS/bin &amp;&amp;</userinput>
  13. <userinput>ln -s bash sh</userinput>
  14. </literallayout></blockquote>
  15. <para>
  16. If the make install phase ends with something along the lines of
  17. </para>
  18. <blockquote>
  19. <screen>
  20. install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
  21. usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
  22. [--section regexp title] [--infodir=xxx] [--align=nnn]
  23. [--calign=nnn] [--quiet] [--menuentry=xxx]
  24. [--info-dir=xxx]
  25. [--keep-old] [--description=xxx] [--test]
  26. [--remove] [--] filename
  27. make[1]: *** [install] Error 1
  28. make[1]: Leaving directory `/mnt/lfs/usr/src/bash-2.04/doc'
  29. make: [install] Error 2 (ignored)
  30. </screen>
  31. </blockquote>
  32. <para>
  33. then that means that you are probably using Debian, and that you have an
  34. old version of the texinfo package. This error is not severe by any means: the
  35. info pages will be installed when we recompile bash dynamically in
  36. chapter 6, so you can ignore it. You do, however, have to run the last
  37. two commands manually (the <userinput>cd $LFS/bin</userinput> and
  38. <userinput>ln -s bash sh</userinput> commands) because they won't be
  39. executed when the error occurs.
  40. </para>
  41. </sect2>