bash-inst.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 you get errors when compiling bash that tell about not being able to
  17. find <quote>-lcurses</quote>, these two commands should be run to create the
  18. missing symlink:
  19. </para>
  20. <para>
  21. Note: Normally, the libncurses.a file resides in the /usr/lib directory
  22. but it might reside in /lib (like it does on LFS systems). Check this
  23. first and adjust the path in the following commands accordingly:
  24. </para>
  25. <blockquote><literallayout>
  26. <userinput>cd /usr/lib &amp;&amp;</userinput>
  27. <userinput>ln -s libncurses.a libcurses.a</userinput>
  28. </literallayout></blockquote>
  29. <para>
  30. If the make install phase ends with something along the lines of
  31. </para>
  32. <blockquote>
  33. <screen>
  34. install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
  35. usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
  36. [--section regexp title] [--infodir=xxx] [--align=nnn]
  37. [--calign=nnn] [--quiet] [--menuentry=xxx]
  38. [--info-dir=xxx]
  39. [--keep-old] [--description=xxx] [--test]
  40. [--remove] [--] filename
  41. make[1]: *** [install] Error 1
  42. make[1]: Leaving directory `/mnt/lfs/usr/src/bash-2.04/doc'
  43. make: [install] Error 2 (ignored)
  44. </screen>
  45. </blockquote>
  46. <para>
  47. then that means that you are probably using Debian, and that you have an
  48. old version of the texinfo package. This error is not severe by any means: the
  49. info pages will be installed when we recompile bash dynamically in chapter 6.
  50. </para>
  51. </sect2>