bash-inst.xml 2.2 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 your host
  6. distribution is an LFS system, all files will be present if you followed
  7. the instructions of the book version you read exactly.</para>
  8. <para>If both of the files are missing, you have to install the Ncurses
  9. development package. This package is often called something like
  10. <emphasis>ncurses-dev</emphasis> or <emphasis>ncurses-static</emphasis>. If
  11. this package is already installed, or you just installed it, check for the
  12. two files again. Often the <filename>libcurses.a</filename> file is (still)
  13. missing. If so, then create <filename>libcurses.a</filename> as a symlink
  14. by running the following commands as user root:</para>
  15. <para><screen><userinput>ln -s libncurses.a /usr/lib/libcurses.a</userinput></screen></para>
  16. <para>Now we can continue. Install Bash by running the following
  17. commands:</para>
  18. <para><screen><userinput>./configure --enable-static-link \
  19. &nbsp;&nbsp;&nbsp;&nbsp;--prefix=$LFS/static --with-curses &amp;&amp;
  20. make &amp;&amp;
  21. make install</userinput></screen></para>
  22. <para>If the <userinput>make install</userinput> phase ends with something
  23. along the lines of this:</para>
  24. <blockquote><screen>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
  25. usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
  26. [--section regexp title] [--infodir=xxx] [--align=nnn]
  27. [--calign=nnn] [--quiet] [--menuentry=xxx]
  28. [--info-dir=xxx]
  29. [--keep-old] [--description=xxx] [--test]
  30. [--remove] [--] filename
  31. make[1]: *** [install] Error 1
  32. make[1]: Leaving directory `/mnt/lfs/usr/src/bash-&bash-version;/doc'
  33. make: [install] Error 2 (ignored)</screen></blockquote>
  34. <para>then that means that you are probably using Debian-2.2 (potato), and
  35. that you have an old version of the texinfo package. This error is not
  36. severe by any means: the info pages will be installed when we recompile bash
  37. dynamically in Chapter 6, so you can ignore it. It is reported that the
  38. current release of Debian (3.0; also known as Woody) doesn't have this
  39. problem.</para>
  40. </sect2>