2004-05-06 17:50:03 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-06 17:50:03 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-readline" role="wrap">
|
2006-02-07 19:39:29 +00:00
|
|
|
<?dbhtml filename="readline.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>readline</productname>
|
|
|
|
<productnumber>&readline-version;</productnumber>
|
|
|
|
<address>&readline-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<title>Readline-&readline-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-readline">
|
|
|
|
<primary sortas="a-Readline">Readline</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>The Readline package is a set of libraries that offers command-line
|
|
|
|
editing and history capabilities.</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<seglistitem>
|
2006-05-14 21:16:56 +01:00
|
|
|
<seg>&readline-ch6-sbu;</seg>
|
|
|
|
<seg>&readline-ch6-du;</seg>
|
2006-02-07 19:39:29 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Readline</title>
|
|
|
|
|
2006-05-01 18:50:08 +01:00
|
|
|
<para>Reinstalling Readline will cause the old libraries to be moved to
|
|
|
|
<libraryname>.old. While this is normally not a problem, in some cases
|
|
|
|
it can trigger a linking bug in <command>ldconfig</command>. This can be
|
|
|
|
avoided by issuing the following two seds:</para>
|
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
|
2006-05-01 18:50:08 +01:00
|
|
|
sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
|
|
|
|
|
2010-02-22 19:08:35 +00:00
|
|
|
<para>Correct the version number used in Readline's documentation:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="pre">sed -i -e 's/0x0600/0x0601/' \
|
|
|
|
-e 's/6\.0/6.1/' \
|
|
|
|
-e 's/RL_VERSION_MINOR\t0/RL_VERSION_MINOR\t1/' readline.h</userinput></screen>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Prepare Readline for compilation:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Compile the package:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make SHLIB_LIBS=-lncurses</userinput></screen>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<variablelist>
|
|
|
|
<title>The meaning of the make option:</title>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>SHLIB_LIBS=-lncurses</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>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
</variablelist>
|
2005-12-07 20:46:14 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
|
|
|
|
<para>Install the package:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Now move the static libraries to a more appropriate location:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Next, remove the <filename class="extension">.so</filename> files in
|
|
|
|
<filename class="directory">/lib</filename> and relink them into <filename
|
2006-07-23 12:05:22 +01:00
|
|
|
class="directory">/usr/lib</filename>:</para>
|
2004-12-06 18:24:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">rm -v /lib/lib{readline,history}.so
|
2009-03-11 21:37:07 +00:00
|
|
|
ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so
|
|
|
|
ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so</userinput></screen>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2008-10-11 14:33:53 +01:00
|
|
|
<para>If desired, install the documentation:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="install">mkdir -v /usr/share/doc/readline-&readline-version;
|
|
|
|
install -v -m644 doc/*.{ps,pdf,html,dvi} \
|
|
|
|
/usr/share/doc/readline-&readline-version;</userinput></screen>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="contents-readline" role="content">
|
|
|
|
<title>Contents of Readline</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed libraries</segtitle>
|
2010-05-23 18:18:52 +01:00
|
|
|
<segtitle>Installed directories</segtitle>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
|
|
|
<seglistitem>
|
2006-04-14 10:37:17 +01:00
|
|
|
<seg>libhistory.{a,so}, and libreadline.{a,so}</seg>
|
2010-05-23 18:18:52 +01:00
|
|
|
<seg>/usr/include/readline, /usr/share/readline,
|
|
|
|
/usr/share/doc/readline-&readline-version;</seg>
|
2006-02-07 19:39:29 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="libhistory">
|
|
|
|
<term><filename class="libraryfile">libhistory</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Provides a consistent user interface for recalling lines
|
|
|
|
of history</para>
|
|
|
|
<indexterm zone="ch-system-readline libhistory">
|
|
|
|
<primary sortas="c-libhistory">libhistory</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libreadline">
|
|
|
|
<term><filename class="libraryfile">libreadline</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Aids in the consistency of user interface across discrete
|
|
|
|
programs that need to provide a command line interface</para>
|
|
|
|
<indexterm zone="ch-system-readline libreadline">
|
|
|
|
<primary sortas="c-libreadline">libreadline</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
|
|
|
</sect1>
|