Index: chapter06/bc.xml
===================================================================
--- chapter06/bc.xml	(revision d83fd51aa6f128ff50898081761940f6c42136b9)
+++ chapter06/bc.xml	(revision 1e472fb9acf1c14f1e13c824b6ca89e1198410be)
@@ -45,4 +45,12 @@
 
 <screen><userinput remap="pre">patch -Np1 -i ../&bc-memory-leak-patch;</userinput></screen> 
+
+    <para>Create a temporary symbolic link so the package can find
+    the readline library and confirm that its required libncurses
+    library is available. Even though the libraries are in /tools/lib
+    at this point, the system will use /usr/lib at the end of
+    this chapter.</para>
+
+<screen><userinput remap="pre">ln -sv /tools/lib/libncursesw.so /usr/lib/libncurses.so</userinput></screen>
 
     <para>Prepare Bc for compilation:</para>
Index: chapter06/chapter06.xml
===================================================================
--- chapter06/chapter06.xml	(revision d83fd51aa6f128ff50898081761940f6c42136b9)
+++ chapter06/chapter06.xml	(revision 1e472fb9acf1c14f1e13c824b6ca89e1198410be)
@@ -24,4 +24,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zlib.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="file.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bc.xml"/>
@@ -44,5 +45,4 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grep.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bash.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtool.xml"/>
Index: chapter06/perl.xml
===================================================================
--- chapter06/perl.xml	(revision d83fd51aa6f128ff50898081761940f6c42136b9)
+++ chapter06/perl.xml	(revision 1e472fb9acf1c14f1e13c824b6ca89e1198410be)
@@ -72,5 +72,6 @@
                   -Dman3dir=/usr/share/man/man3 \
                   -Dpager="/usr/bin/less -isR"  \
-                  -Duseshrplib</userinput></screen>
+                  -Duseshrplib                  \
+                  -Dusethreads</userinput></screen>
 
     <variablelist>
@@ -107,4 +108,11 @@
         <listitem>
           <para>Build a shared libperl needed by some perl modules.</para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><parameter>-Dusethreads</parameter></term>
+        <listitem>
+          <para>Build perl with support for threads.</para>
         </listitem>
       </varlistentry>
Index: chapter06/readline.xml
===================================================================
--- chapter06/readline.xml	(revision d83fd51aa6f128ff50898081761940f6c42136b9)
+++ chapter06/readline.xml	(revision 1e472fb9acf1c14f1e13c824b6ca89e1198410be)
@@ -58,5 +58,5 @@
     <para>Compile the package:</para>
 
-<screen><userinput remap="make">make SHLIB_LIBS=-lncurses</userinput></screen>
+<screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib -lncursesw"</userinput></screen>
 
     <variablelist>
@@ -64,9 +64,8 @@
 
       <varlistentry>
-        <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
+        <term><parameter>SHLIB_LIBS="-L/tools/lib -lncursesw"</parameter></term>
         <listitem>
           <para>This option forces Readline to link against the
-          <filename class="libraryfile">libncurses</filename> (really,
-          <filename class="libraryfile">libncursesw</filename>) library.</para>
+          <filename class="libraryfile">libncursesw</filename> library.</para>
         </listitem>
       </varlistentry>
@@ -78,5 +77,5 @@
     <para>Install the package:</para>
 
-<screen><userinput remap="install">make SHLIB_LIBS=-lncurses install</userinput></screen>
+<screen><userinput remap="install">make SHLIB_LIBS="-L/tools/lib -lncurses" install</userinput></screen>
 
     <para>Now move the dynamic libraries to a more appropriate location
