bash-inst.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <sect2>
  2. <title>Installation of Bash</title>
  3. <para>Install Bash by running the following commands:</para>
  4. <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
  5. <userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin &amp;&amp;</userinput>
  6. <userinput>make &amp;&amp;</userinput>
  7. <userinput>make install &amp;&amp;</userinput>
  8. <userinput>cd $LFS/bin &amp;&amp;</userinput>
  9. <userinput>ln -s bash sh</userinput></screen></para>
  10. <para>If the make install phase ends with something along the lines of</para>
  11. <blockquote><screen>install-info: unknown option `--dir-file=/mnt/lfs/usr/info/dir'
  12. usage: install-info [--version] [--help] [--debug] [--maxwidth=nnn]
  13. [--section regexp title] [--infodir=xxx] [--align=nnn]
  14. [--calign=nnn] [--quiet] [--menuentry=xxx]
  15. [--info-dir=xxx]
  16. [--keep-old] [--description=xxx] [--test]
  17. [--remove] [--] filename
  18. make[1]: *** [install] Error 1
  19. make[1]: Leaving directory `/mnt/lfs/usr/src/bash-&bash-version;/doc'
  20. make: [install] Error 2 (ignored)</screen></blockquote>
  21. <para>then that means that you are probably using Debian, and that you have an
  22. old version of the texinfo package. This error is not severe by any means: the
  23. info pages will be installed when we recompile bash dynamically in
  24. chapter 6, so you can ignore it. You do, however, have to run the last
  25. two commands manually (the <userinput>cd $LFS/bin</userinput> and
  26. <userinput>ln -s bash sh</userinput> commands) because they won't be
  27. executed when the error occurs.</para>
  28. </sect2>