Update installed programs for perl
[linux_from_scratch.git] / chapter06 / readline.xml
blobcb6c87719cbd07ed4e101aa6107eeeeb04f53551
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4   <!ENTITY % general-entities SYSTEM "../general.ent">
5   %general-entities;
6 ]>
8 <sect1 id="ch-system-readline" role="wrap">
9   <?dbhtml filename="readline.html"?>
11   <sect1info condition="script">
12     <productname>readline</productname>
13     <productnumber>&readline-version;</productnumber>
14     <address>&readline-url;</address>
15   </sect1info>
17   <title>Readline-&readline-version;</title>
19   <indexterm zone="ch-system-readline">
20     <primary sortas="a-Readline">Readline</primary>
21   </indexterm>
23   <sect2 role="package">
24     <title/>
26     <para>The Readline package is a set of libraries that offers command-line
27     editing and history capabilities.</para>
29     <segmentedlist>
30       <segtitle>&buildtime;</segtitle>
31       <segtitle>&diskspace;</segtitle>
33       <seglistitem>
34         <seg>&readline-ch6-sbu;</seg>
35         <seg>&readline-ch6-du;</seg>
36       </seglistitem>
37     </segmentedlist>
39   </sect2>
41   <sect2 role="installation">
42     <title>Installation of Readline</title>
44     <para>Reinstalling Readline will cause the old libraries to be moved to
45     &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
46     it can trigger a linking bug in <command>ldconfig</command>. This can be
47     avoided by issuing the following two seds:</para>
49 <screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
50 sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
52     <para>Prepare Readline for compilation:</para>
54 <screen><userinput remap="configure">./configure --prefix=/usr    \
55             --disable-static \
56             --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
58     <para>Compile the package:</para>
60 <screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib -lncursesw"</userinput></screen>
62     <variablelist>
63       <title>The meaning of the make option:</title>
65       <varlistentry>
66         <term><parameter>SHLIB_LIBS="-L/tools/lib -lncursesw"</parameter></term>
67         <listitem>
68           <para>This option forces Readline to link against the
69           <filename class="libraryfile">libncursesw</filename> library.</para>
70         </listitem>
71       </varlistentry>
73     </variablelist>
75     <para>This package does not come with a test suite.</para>
77     <para>Install the package:</para>
79 <screen><userinput remap="install">make SHLIB_LIBS="-L/tools/lib -lncursesw" install</userinput></screen>
81     <para>Now move the dynamic libraries to a more appropriate location
82     and fix up some permissions and symbolic links:</para>
84 <screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
85 chmod -v u+w /lib/lib{readline,history}.so.*
86 ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
87 ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
89     <para>If desired, install the documentation:</para>
91 <screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
93   </sect2>
95   <sect2 id="contents-readline" role="content">
96     <title>Contents of Readline</title>
98     <segmentedlist>
99       <segtitle>Installed libraries</segtitle>
100       <segtitle>Installed directories</segtitle>
102       <seglistitem>
103         <seg>libhistory.so and libreadline.so</seg>
104         <seg>/usr/include/readline, /usr/share/readline, and
105         /usr/share/doc/readline-&readline-version;</seg>
106       </seglistitem>
107     </segmentedlist>
109     <variablelist>
110       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
111       <?dbfo list-presentation="list"?>
112       <?dbhtml list-presentation="table"?>
114       <varlistentry id="libhistory">
115         <term><filename class="libraryfile">libhistory</filename></term>
116         <listitem>
117           <para>Provides a consistent user interface for recalling lines
118           of history</para>
119           <indexterm zone="ch-system-readline libhistory">
120             <primary sortas="c-libhistory">libhistory</primary>
121           </indexterm>
122         </listitem>
123       </varlistentry>
125       <varlistentry id="libreadline">
126         <term><filename class="libraryfile">libreadline</filename></term>
127         <listitem>
128           <para>Provides a set of commands for manipulating text entered in an
129           interactive session of a program.</para>
130           <indexterm zone="ch-system-readline libreadline">
131             <primary sortas="c-libreadline">libreadline</primary>
132           </indexterm>
133         </listitem>
134       </varlistentry>
136     </variablelist>
138   </sect2>
140 </sect1>