bash-inst.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <sect2>
  2. <title>Installation of Bash</title>
  3. <para>Before you attempt to install Bash, you have to check to make sure
  4. your distribution has the <filename>/usr/lib/libcurses.a</filename> and
  5. <filename>/usr/lib/libncurses.a</filename> files. If both of the files
  6. are missing, you have to install the ncurses development package. This
  7. package is often call something like <emphasis>ncurses-dev</emphasis>.</para>
  8. <para>If this package is already installed, or you just did it, check
  9. for the two files again. Often the <filename>libcurses.a</filename> file
  10. is (still) missing. If so, then create <filename>libcurses.a</filename>
  11. as a symlink by running the following commands:</para>
  12. <para><screen><userinput>cd /usr/lib &amp;&amp;</userinput>
  13. <userinput>ln -s libncurses.a libcurses.a</userinput></screen></para>
  14. <para>Now we can continue. Install Bash by running the following
  15. commands:</para>
  16. <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
  17. <userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin --with-curses &amp;&amp;</userinput>
  18. <userinput>make &amp;&amp;</userinput>
  19. <userinput>make install &amp;&amp;</userinput>
  20. <userinput>cd $LFS/bin &amp;&amp;</userinput>
  21. <userinput>ln -sf bash sh</userinput></screen></para>
  22. <para>If the make install phase ends with something along the lines of</para>
  23. <blockquote><screen>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
  24. usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
  25. [--section regexp title] [--infodir=xxx] [--align=nnn]
  26. [--calign=nnn] [--quiet] [--menuentry=xxx]
  27. [--info-dir=xxx]
  28. [--keep-old] [--description=xxx] [--test]
  29. [--remove] [--] filename
  30. make[1]: *** [install] Error 1
  31. make[1]: Leaving directory `/mnt/lfs/usr/src/bash-&bash-version;/doc'
  32. make: [install] Error 2 (ignored)</screen></blockquote>
  33. <para>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 -sf bash sh</userinput> commands) because they won't be
  39. executed when the error occurs.</para>
  40. </sect2>