bash-inst.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <sect2>
  2. <title>Installation of Bash</title>
  3. <para>
  4. Bash needs a static ncurses library that goes by the name of libcurses.a. Some
  5. distributions provide this file under the name of libncurses.a. If this is the
  6. case of your distribution, run the following two commands to fix the problem:
  7. </para>
  8. <para>
  9. Note: Normally, the libncurses.a file resides in the /usr/lib directory
  10. but it might reside in /lib (like it does on LFS systems). Check this
  11. first and adjust the path in the following commands accordingly:
  12. </para>
  13. <blockquote><literallayout>
  14. <userinput>cd /usr/lib &amp;&amp;</userinput>
  15. <userinput>ln -s libncurses.a libcurses.a</userinput>
  16. </literallayout></blockquote>
  17. <para>
  18. Install Bash by running the following commands:
  19. </para>
  20. <blockquote><literallayout>
  21. <userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
  22. <userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin
  23. --with-curses &amp;&amp;</userinput>
  24. <userinput>make &amp;&amp;</userinput>
  25. <userinput>make install &amp;&amp;</userinput>
  26. <userinput>cd $LFS/bin &amp;&amp;</userinput>
  27. <userinput>ln -s bash sh</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>