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>
|
2020-06-29 08:55:01 +01:00
|
|
|
<seg>&readline-fin-sbu;</seg>
|
|
|
|
<seg>&readline-fin-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>
|
2011-03-14 22:07:59 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Prepare Readline for compilation:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2015-03-15 23:29:31 +00:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
2020-04-21 14:41:01 +01:00
|
|
|
--with-curses \
|
2015-03-15 23:29:31 +00:00
|
|
|
--docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2020-04-21 14:41:01 +01:00
|
|
|
<variablelist>
|
|
|
|
<title>The meaning of the configure option:</title>
|
|
|
|
|
|
|
|
<varlistentry>
|
2020-06-29 08:55:01 +01:00
|
|
|
<term><parameter>--with-curses</parameter></term>
|
2020-04-21 14:41:01 +01:00
|
|
|
<listitem>
|
|
|
|
<para>This option tells Readline that it can find the termcap
|
2020-06-29 08:55:01 +01:00
|
|
|
library functions in the curses library, rather than a separate
|
|
|
|
termcap library. It allows generating a correct
|
|
|
|
<filename>readline.pc</filename> file.</para>
|
2020-04-21 14:41:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>Compile the package:</para>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2020-06-29 08:55:01 +01:00
|
|
|
<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</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>
|
2020-06-29 08:55:01 +01:00
|
|
|
<term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
|
2006-02-07 19:39:29 +00:00
|
|
|
<listitem>
|
|
|
|
<para>This option forces Readline to link against the
|
2017-03-29 03:13:40 +01:00
|
|
|
<filename class="libraryfile">libncursesw</filename> library.</para>
|
2006-02-07 19:39:29 +00:00
|
|
|
</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
|
|
|
|
2020-06-29 08:55:01 +01:00
|
|
|
<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
|
2004-05-06 17:50:03 +01:00
|
|
|
|
2008-10-11 14:33:53 +01:00
|
|
|
<para>If desired, install the documentation:</para>
|
|
|
|
|
2014-03-12 20:29:13 +00:00
|
|
|
<screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
|
2008-10-11 14:33:53 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
</sect2>
|
|
|
|
|
2020-06-29 08:55:01 +01:00
|
|
|
<!-- - - - - - - - - - -->
|
|
|
|
<!-- Multilib - 32bit -->
|
|
|
|
<!-- - - - - - - - - - -->
|
2019-04-07 10:47:30 +01:00
|
|
|
|
|
|
|
<sect2 arch="ml_32,ml_all" role="installation">
|
2020-06-29 08:55:01 +01:00
|
|
|
<title>Installation of Readline - 32bit</title>
|
2019-04-01 18:00:45 +01:00
|
|
|
|
|
|
|
<para>Clean previous build:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="pre">make distclean</userinput></screen>
|
|
|
|
|
|
|
|
<para>Prepare Readline for compilation:</para>
|
|
|
|
|
2020-06-29 08:55:01 +01:00
|
|
|
<screen><userinput remap="configure">CC="gcc -m32" ./configure \
|
2021-05-18 09:02:19 +01:00
|
|
|
--host=i686-pc-linux-gnu \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--disable-static</userinput></screen>
|
2019-04-01 18:00:45 +01:00
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
2021-11-04 16:13:28 +00:00
|
|
|
<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
2019-04-01 18:00:45 +01:00
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
2021-11-04 16:13:28 +00:00
|
|
|
<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
|
2021-05-14 11:47:43 +01:00
|
|
|
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
2019-04-01 18:00:45 +01:00
|
|
|
rm -rf DESTDIR</userinput></screen>
|
|
|
|
|
2020-06-29 08:55:01 +01:00
|
|
|
</sect2><!-- m32 -->
|
2019-04-01 18:00:45 +01:00
|
|
|
|
2020-06-29 08:55:01 +01:00
|
|
|
<!-- - - - - - - - - - -->
|
|
|
|
<!-- Multilib - x32bit -->
|
|
|
|
<!-- - - - - - - - - - -->
|
2019-04-07 10:47:30 +01:00
|
|
|
|
|
|
|
<sect2 arch="ml_x32,ml_all" role="installation">
|
2020-06-29 08:55:01 +01:00
|
|
|
<title>Installation of Readline - x32bit</title>
|
2019-04-01 18:00:45 +01:00
|
|
|
|
|
|
|
<para>Clean previous build:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="pre">make distclean</userinput></screen>
|
|
|
|
|
|
|
|
<para>Prepare Readline for compilation:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
|
2021-05-18 09:02:19 +01:00
|
|
|
--host=x86_64-pc-linux-gnux32 \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/libx32 \
|
|
|
|
--disable-static</userinput></screen>
|
2019-04-01 18:00:45 +01:00
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
2021-11-04 16:13:28 +00:00
|
|
|
<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
2019-04-01 18:00:45 +01:00
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
2021-11-04 16:13:28 +00:00
|
|
|
<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
|
2021-05-14 11:47:43 +01:00
|
|
|
cp -Rv DESTDIR/usr/libx32/* /usr/libx32
|
2019-04-01 18:00:45 +01:00
|
|
|
rm -rf DESTDIR</userinput></screen>
|
|
|
|
|
2020-06-29 08:55:01 +01:00
|
|
|
</sect2><!-- mx32 -->
|
2019-04-01 18:00:45 +01:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<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>
|
2015-10-12 22:20:03 +01:00
|
|
|
<seg>libhistory.so and libreadline.so</seg>
|
2019-03-13 17:58:54 +00:00
|
|
|
<seg>/usr/include/readline and
|
2010-05-23 18:18:52 +01:00
|
|
|
/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>
|
2017-12-28 03:52:38 +00:00
|
|
|
<para>Provides a set of commands for manipulating text entered in an
|
2021-02-20 06:34:19 +00:00
|
|
|
interactive session of a program</para>
|
2006-02-07 19:39:29 +00:00
|
|
|
<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>
|