bash-inst.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <sect2>
  2. <title>Installation of Bash</title>
  3. <para>
  4. Install Bash by running the following commands:
  5. </para>
  6. <blockquote><literallayout>
  7. <userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
  8. <userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin
  9. --with-curses &amp;&amp;</userinput>
  10. <userinput>make &amp;&amp;</userinput>
  11. <userinput>make install &amp;&amp;</userinput>
  12. <userinput>cd $LFS/bin &amp;&amp;</userinput>
  13. <userinput>ln -s bash sh</userinput>
  14. </literallayout></blockquote>
  15. <para>
  16. If you get errors when compiling bash that tell about not being able to
  17. find <quote>-lcurses</quote>, these two commands should be run to create the
  18. missing symlink:
  19. </para>
  20. <para>
  21. Note: Normally, the libncurses.a file resides in the /usr/lib directory
  22. but it might reside in /lib (like it does on LFS systems). Check this
  23. first and adjust the path in the following commands accordingly:
  24. </para>
  25. <blockquote><literallayout>
  26. <userinput>cd /usr/lib &amp;&amp;</userinput>
  27. <userinput>ln -s libncurses.a libcurses.a</userinput>
  28. </literallayout></blockquote>
  29. </sect2>