bash-inst.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 --disable-nls
  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 a user gets 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 (so far we have not enountered one distribution that has
  19. this libncurses symlink setup properly, except for LFS systems where it
  20. is setup properly):
  21. </para>
  22. <blockquote><literallayout>
  23. <userinput>cd /usr/lib &amp;&amp;</userinput>
  24. <userinput>ln -s libncurses.a libcurses.a</userinput>
  25. </literallayout></blockquote>
  26. <para>
  27. Note: Normally the libncurses.a file resides in the /usr/lib directory
  28. but it might reside in /lib (like it does on LFS systems). A user needs
  29. to check to
  30. make sure whether the ln command has to be run in /usr/lib or in /lib.
  31. </para>
  32. </sect2>