bash-static-inst.sgml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 you get errors when compiling bash that tell you about not being able to
  17. find <quote>-lcurses</quote> run these two commands 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). So check to
  29. make sure whether you should run the ln command in /usr/lib or in /lib
  30. </para>
  31. </sect2>