bash-inst.xml 1.5 KB

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