Browse Source

added notes to install ncurses properly on host distro (it's required
for texinfo to be compiled properly). Added --with-curses to bash's
configure again like previously done. This now functions as a test to
make sure the libraries are setup properly (ie; that symlink created and
such)


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1181 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Gerard Beekmans 24 năm trước cách đây
mục cha
commit
5cce404acf
2 tập tin đã thay đổi với 30 bổ sung2 xóa
  1. 13 0
      chapter05/bash-exp.xml
  2. 17 2
      chapter05/bash-inst.xml

+ 13 - 0
chapter05/bash-exp.xml

@@ -16,6 +16,19 @@ partition which has to be mounted at some point. Before that partition is
 mounted you need and will want to have bash available (it will be hard to 
 mounted you need and will want to have bash available (it will be hard to 
 execute the boot scripts without a shell for instance).</para>
 execute the boot scripts without a shell for instance).</para>
 
 
+<para><userinput>--with-curses:</userinput> This causes Bash to be 
+linked against the curses library instead of the default termcap 
+library which is becoming obsolete.</para>
+
+<para>It is not strictly necessary for the static bash to be linked
+against libncurses (it can link against a static termap for the time
+being just fine because we will reinstall Bash in chapter 6 anyways,
+where we will use libncurses), but it's a good test to make sure that
+the ncurses package has been installed properly. If not, you will get in
+trouble later on in this chapter when you install the Texinfo package.
+That package requires ncurses and termcap can't reliably be used
+there.</para>
+
 <para><userinput>ln -sf bash sh:</userinput> This command creates the sh
 <para><userinput>ln -sf bash sh:</userinput> This command creates the sh
 symlink that points to bash. Most scripts run themselves via 'sh'
 symlink that points to bash. Most scripts run themselves via 'sh'
 (invoked by the #!/bin/sh as the first line in the scripts) which
 (invoked by the #!/bin/sh as the first line in the scripts) which

+ 17 - 2
chapter05/bash-inst.xml

@@ -1,10 +1,25 @@
 <sect2>
 <sect2>
 <title>Installation of Bash</title>
 <title>Installation of Bash</title>
 
 
-<para>Install Bash by running the following commands:</para>
+<para>Before you attempt to install Bash, you have to check to make sure
+your distribution has the <filename>/usr/lib/libcurses.a</filename> and
+<filename>/usr/lib/libncurses.a</filename> files. If both of the files
+are missing, you have to install the ncurses development package. This
+package is often call something like <emphasis>ncurses-dev</emphasis>.</para>
+
+<para>If this package is already installed, or you just did it, check
+for the two files again. Often the <filename>libcurses.a</filename> file
+is (still) missing. If so, then create <filename>libcurses.a</filename> 
+as a symlink by running the following commands:</para>
+
+<para><screen><userinput>cd /usr/lib &amp;&amp;</userinput>
+<userinput>ln -s libncurses.a libcurses.a</userinput></screen></para>
+
+<para>Now we can continue. Install Bash by running the following 
+commands:</para>
 
 
 <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
 <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
-<userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin &amp;&amp;</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin --with-curses &amp;&amp;</userinput>
 <userinput>make &amp;&amp;</userinput>
 <userinput>make &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
 <userinput>cd $LFS/bin &amp;&amp;</userinput>
 <userinput>cd $LFS/bin &amp;&amp;</userinput>