2004-05-06 17:50:03 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2006-02-07 19:39:29 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/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"?>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<seg>0.11 SBU</seg>
|
|
|
|
<seg>9.1 MB</seg>
|
|
|
|
</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-02-19 21:00:50 +00:00
|
|
|
<para>Upstream developers have fixed several issues since the initial
|
|
|
|
release of Readline-&readline-version;. Apply those fixes:</para>
|
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Prepare Readline for compilation:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2004-12-03 18:29:38 +00:00
|
|
|
<screen><userinput>./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
|
|
|
|
2005-12-11 21:53:46 +00:00
|
|
|
<screen><userinput>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
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Give Readline's dynamic libraries more appropriate permissions:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2005-09-29 21:55:40 +01:00
|
|
|
<screen><userinput>chmod -v 755 /lib/lib{readline,history}.so*</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
|
|
|
|
2005-09-29 21:55:40 +01:00
|
|
|
<screen><userinput>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
|
|
|
|
class="directory">/usr/lib</filename>.</para>
|
2004-12-06 18:24:50 +00:00
|
|
|
|
2005-09-29 21:55:40 +01:00
|
|
|
<screen><userinput>rm -v /lib/lib{readline,history}.so
|
|
|
|
ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
|
|
|
|
ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
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>
|
|
|
|
|
|
|
|
<seglistitem>
|
2006-04-14 10:37:17 +01:00
|
|
|
<seg>libhistory.{a,so}, and libreadline.{a,so}</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>
|