Browse Source

Put the libncurses.a thingie before we start installing bash.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@524 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Simon Perreault 24 years ago
parent
commit
970f0b386f
1 changed files with 17 additions and 17 deletions
  1. 17 17
      chapter05/bash-inst.xml

+ 17 - 17
chapter05/bash-inst.xml

@@ -2,23 +2,9 @@
 <title>Installation of Bash</title>
 
 <para>
-Install Bash by running the following commands:
-</para>
-
-<blockquote><literallayout>
-	<userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
-	<userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin 
-		--with-curses &amp;&amp;</userinput>
-	<userinput>make &amp;&amp;</userinput>
-	<userinput>make install &amp;&amp;</userinput>
-	<userinput>cd $LFS/bin &amp;&amp;</userinput>
-	<userinput>ln -s bash sh</userinput>
-</literallayout></blockquote>
-
-<para>
-If you get errors when compiling bash that tell about not being able to
-find <quote>-lcurses</quote>, these two commands should be run to create the
-missing symlink:
+Bash needs a static ncurses library that goes by the name of libcurses.a. Some
+distributions provide this file under the name of libncurses.a. If this is the
+case of your distribution, run the following two commands to fix the problem:
 </para>
 
 <para>
@@ -32,6 +18,20 @@ first and adjust the path in the following commands accordingly:
 	<userinput>ln -s libncurses.a libcurses.a</userinput>
 </literallayout></blockquote>
 
+<para>
+Install Bash by running the following commands:
+</para>
+
+<blockquote><literallayout>
+	<userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
+	<userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin 
+		--with-curses &amp;&amp;</userinput>
+	<userinput>make &amp;&amp;</userinput>
+	<userinput>make install &amp;&amp;</userinput>
+	<userinput>cd $LFS/bin &amp;&amp;</userinput>
+	<userinput>ln -s bash sh</userinput>
+</literallayout></blockquote>
+
 <para>
 If the make install phase ends with something along the lines of
 </para>