[3125dfb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3125dfb] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[3f3931b0] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-readline" role="wrap">
|
---|
[3f3931b0] | 9 | <?dbhtml filename="readline.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>readline</productname>
|
---|
| 13 | <productnumber>&readline-version;</productnumber>
|
---|
| 14 | <address>&readline-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[3f3931b0] | 17 | <title>Readline-&readline-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-readline">
|
---|
| 20 | <primary sortas="a-Readline">Readline</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[3125dfb] | 25 |
|
---|
[3f3931b0] | 26 | <para>The Readline package is a set of libraries that offers command-line
|
---|
| 27 | editing and history capabilities.</para>
|
---|
[3125dfb] | 28 |
|
---|
[3f3931b0] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[3125dfb] | 32 |
|
---|
[3f3931b0] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&readline-ch6-sbu;</seg>
|
---|
| 35 | <seg>&readline-ch6-du;</seg>
|
---|
[3f3931b0] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[3125dfb] | 38 |
|
---|
[3f3931b0] | 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Readline</title>
|
---|
| 43 |
|
---|
[2ed4bb3f] | 44 | <para>Reinstalling Readline will cause the old libraries to be moved to
|
---|
| 45 | <libraryname>.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>
|
---|
| 48 |
|
---|
[0445a3d] | 49 | <screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
|
---|
[2ed4bb3f] | 50 | sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
|
---|
| 51 |
|
---|
[c69e984] | 52 | <para>Correct the version number used in Readline's documentation:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput remap="pre">sed -i -e 's/0x0600/0x0601/' \
|
---|
| 55 | -e 's/6\.0/6.1/' \
|
---|
| 56 | -e 's/RL_VERSION_MINOR\t0/RL_VERSION_MINOR\t1/' readline.h</userinput></screen>
|
---|
| 57 |
|
---|
[3f3931b0] | 58 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 59 |
|
---|
[0445a3d] | 60 | <screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
[3125dfb] | 61 |
|
---|
[3f3931b0] | 62 | <para>Compile the package:</para>
|
---|
[3125dfb] | 63 |
|
---|
[0445a3d] | 64 | <screen><userinput remap="make">make SHLIB_LIBS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 65 |
|
---|
[3f3931b0] | 66 | <variablelist>
|
---|
| 67 | <title>The meaning of the make option:</title>
|
---|
[81fd230] | 68 |
|
---|
[3f3931b0] | 69 | <varlistentry>
|
---|
| 70 | <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>This option forces Readline to link against the
|
---|
| 73 | <filename class="libraryfile">libncurses</filename> (really,
|
---|
| 74 | <filename class="libraryfile">libncursesw</filename>) library.</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
[81fd230] | 77 |
|
---|
[3f3931b0] | 78 | </variablelist>
|
---|
[0be3d41] | 79 |
|
---|
[3f3931b0] | 80 | <para>This package does not come with a test suite.</para>
|
---|
| 81 |
|
---|
| 82 | <para>Install the package:</para>
|
---|
[3125dfb] | 83 |
|
---|
[0445a3d] | 84 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[3125dfb] | 85 |
|
---|
[3f3931b0] | 86 | <para>Now move the static libraries to a more appropriate location:</para>
|
---|
[3125dfb] | 87 |
|
---|
[0445a3d] | 88 | <screen><userinput remap="install">mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
[3125dfb] | 89 |
|
---|
[3f3931b0] | 90 | <para>Next, remove the <filename class="extension">.so</filename> files in
|
---|
| 91 | <filename class="directory">/lib</filename> and relink them into <filename
|
---|
[e1060de] | 92 | class="directory">/usr/lib</filename>:</para>
|
---|
[7111666] | 93 |
|
---|
[0445a3d] | 94 | <screen><userinput remap="install">rm -v /lib/lib{readline,history}.so
|
---|
[8b88eca] | 95 | ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so
|
---|
| 96 | ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so</userinput></screen>
|
---|
[81fd230] | 97 |
|
---|
[52e836a] | 98 | <para>If desired, install the documentation:</para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput remap="install">mkdir -v /usr/share/doc/readline-&readline-version;
|
---|
| 101 | install -v -m644 doc/*.{ps,pdf,html,dvi} \
|
---|
| 102 | /usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
| 103 |
|
---|
[3f3931b0] | 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2 id="contents-readline" role="content">
|
---|
| 107 | <title>Contents of Readline</title>
|
---|
| 108 |
|
---|
| 109 | <segmentedlist>
|
---|
| 110 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 111 | <segtitle>Installed directories</segtitle>
|
---|
[3f3931b0] | 112 |
|
---|
| 113 | <seglistitem>
|
---|
[0090db5] | 114 | <seg>libhistory.{a,so}, and libreadline.{a,so}</seg>
|
---|
[fe05b08] | 115 | <seg>/usr/include/readline, /usr/share/readline,
|
---|
| 116 | /usr/share/doc/readline-&readline-version;</seg>
|
---|
[3f3931b0] | 117 | </seglistitem>
|
---|
| 118 | </segmentedlist>
|
---|
| 119 |
|
---|
| 120 | <variablelist>
|
---|
| 121 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 122 | <?dbfo list-presentation="list"?>
|
---|
| 123 | <?dbhtml list-presentation="table"?>
|
---|
| 124 |
|
---|
| 125 | <varlistentry id="libhistory">
|
---|
| 126 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>Provides a consistent user interface for recalling lines
|
---|
| 129 | of history</para>
|
---|
| 130 | <indexterm zone="ch-system-readline libhistory">
|
---|
| 131 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="libreadline">
|
---|
| 137 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>Aids in the consistency of user interface across discrete
|
---|
| 140 | programs that need to provide a command line interface</para>
|
---|
| 141 | <indexterm zone="ch-system-readline libreadline">
|
---|
| 142 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | </variablelist>
|
---|
| 148 |
|
---|
| 149 | </sect2>
|
---|
[3125dfb] | 150 |
|
---|
| 151 | </sect1>
|
---|