bash-inst.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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>. If this package is already installed,
  11. or you just installed it, check for the two files again. Often the
  12. <filename>libcurses.a</filename> file is (still) missing. If so, then
  13. create <filename>libcurses.a</filename> as a symlink by running the
  14. 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/usr --bindir=$LFS/bin --with-curses &amp;&amp;
  20. make &amp;&amp;
  21. make install &amp;&amp;
  22. ln -sf bash $LFS/bin/sh</userinput></screen></para>
  23. <para>If the make install phase ends with something along the lines of</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, 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.</para>
  38. <para>When we tested it with the latest Debian version, the last two
  39. commands were executed because the install process didn't return with a
  40. value larger than 0. But you would do good to check if you have the
  41. <filename class="symlink">$LFS/bin/sh</filename> symlink on your LFS
  42. partition. If not, run the last two commands manually now.</para>
  43. </sect2>