[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>
|
---|
[6dfcfecc] | 34 | <seg>&readline-fin-sbu;</seg>
|
---|
| 35 | <seg>&readline-fin-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>
|
---|
[67e8a9b] | 51 |
|
---|
[3f3931b0] | 52 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 53 |
|
---|
[73b2841] | 54 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 55 | --disable-static \
|
---|
[e37764e] | 56 | --with-curses \
|
---|
[73b2841] | 57 | --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
[3125dfb] | 58 |
|
---|
[e37764e] | 59 | <variablelist>
|
---|
| 60 | <title>The meaning of the configure option:</title>
|
---|
| 61 |
|
---|
| 62 | <varlistentry>
|
---|
[6dfcfecc] | 63 | <term><parameter>--with-curses</parameter></term>
|
---|
[e37764e] | 64 | <listitem>
|
---|
| 65 | <para>This option tells Readline that it can find the termcap
|
---|
[6dfcfecc] | 66 | library functions in the curses library, rather than a separate
|
---|
| 67 | termcap library. It allows generating a correct
|
---|
| 68 | <filename>readline.pc</filename> file.</para>
|
---|
[e37764e] | 69 | </listitem>
|
---|
| 70 | </varlistentry>
|
---|
| 71 |
|
---|
| 72 | </variablelist>
|
---|
| 73 |
|
---|
[3f3931b0] | 74 | <para>Compile the package:</para>
|
---|
[3125dfb] | 75 |
|
---|
[6dfcfecc] | 76 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
[3125dfb] | 77 |
|
---|
[3f3931b0] | 78 | <variablelist>
|
---|
| 79 | <title>The meaning of the make option:</title>
|
---|
[81fd230] | 80 |
|
---|
[3f3931b0] | 81 | <varlistentry>
|
---|
[6dfcfecc] | 82 | <term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
|
---|
[3f3931b0] | 83 | <listitem>
|
---|
| 84 | <para>This option forces Readline to link against the
|
---|
[1e472fb] | 85 | <filename class="libraryfile">libncursesw</filename> library.</para>
|
---|
[3f3931b0] | 86 | </listitem>
|
---|
| 87 | </varlistentry>
|
---|
[81fd230] | 88 |
|
---|
[3f3931b0] | 89 | </variablelist>
|
---|
[0be3d41] | 90 |
|
---|
[3f3931b0] | 91 | <para>This package does not come with a test suite.</para>
|
---|
| 92 |
|
---|
| 93 | <para>Install the package:</para>
|
---|
[3125dfb] | 94 |
|
---|
[6dfcfecc] | 95 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
|
---|
[3125dfb] | 96 |
|
---|
[52e836a] | 97 | <para>If desired, install the documentation:</para>
|
---|
| 98 |
|
---|
[a57d556] | 99 | <screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
[52e836a] | 100 |
|
---|
[3f3931b0] | 101 | </sect2>
|
---|
| 102 |
|
---|
[6dfcfecc] | 103 | <!-- - - - - - - - - - -->
|
---|
| 104 | <!-- Multilib - 32bit -->
|
---|
| 105 | <!-- - - - - - - - - - -->
|
---|
[fd48baa] | 106 |
|
---|
| 107 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
[6dfcfecc] | 108 | <title>Installation of Readline - 32bit</title>
|
---|
[b3f1ebb3] | 109 |
|
---|
| 110 | <para>Clean previous build:</para>
|
---|
| 111 |
|
---|
| 112 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 113 |
|
---|
| 114 | <para>Prepare Readline for compilation:</para>
|
---|
| 115 |
|
---|
[6dfcfecc] | 116 | <screen><userinput remap="configure">CC="gcc -m32" ./configure \
|
---|
[70aadfb] | 117 | --host=i686-pc-linux-gnu \
|
---|
| 118 | --prefix=/usr \
|
---|
| 119 | --libdir=/usr/lib32 \
|
---|
| 120 | --disable-static</userinput></screen>
|
---|
[b3f1ebb3] | 121 |
|
---|
| 122 | <para>Compile the package:</para>
|
---|
| 123 |
|
---|
| 124 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | <para>Install the package:</para>
|
---|
| 127 |
|
---|
| 128 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
[0ebda11] | 129 | cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
---|
[b3f1ebb3] | 130 | rm -rf DESTDIR</userinput></screen>
|
---|
| 131 |
|
---|
[6dfcfecc] | 132 | </sect2><!-- m32 -->
|
---|
[b3f1ebb3] | 133 |
|
---|
[6dfcfecc] | 134 | <!-- - - - - - - - - - -->
|
---|
| 135 | <!-- Multilib - x32bit -->
|
---|
| 136 | <!-- - - - - - - - - - -->
|
---|
[fd48baa] | 137 |
|
---|
| 138 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
[6dfcfecc] | 139 | <title>Installation of Readline - x32bit</title>
|
---|
[b3f1ebb3] | 140 |
|
---|
| 141 | <para>Clean previous build:</para>
|
---|
| 142 |
|
---|
| 143 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 144 |
|
---|
| 145 | <para>Prepare Readline for compilation:</para>
|
---|
| 146 |
|
---|
| 147 | <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
|
---|
[70aadfb] | 148 | --host=x86_64-pc-linux-gnux32 \
|
---|
| 149 | --prefix=/usr \
|
---|
| 150 | --libdir=/usr/libx32 \
|
---|
| 151 | --disable-static</userinput></screen>
|
---|
[b3f1ebb3] | 152 |
|
---|
| 153 | <para>Compile the package:</para>
|
---|
| 154 |
|
---|
| 155 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 156 |
|
---|
| 157 | <para>Install the package:</para>
|
---|
| 158 |
|
---|
| 159 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
[0ebda11] | 160 | cp -Rv DESTDIR/usr/libx32/* /usr/libx32
|
---|
[b3f1ebb3] | 161 | rm -rf DESTDIR</userinput></screen>
|
---|
| 162 |
|
---|
[6dfcfecc] | 163 | </sect2><!-- mx32 -->
|
---|
[b3f1ebb3] | 164 |
|
---|
[3f3931b0] | 165 | <sect2 id="contents-readline" role="content">
|
---|
| 166 | <title>Contents of Readline</title>
|
---|
| 167 |
|
---|
| 168 | <segmentedlist>
|
---|
| 169 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 170 | <segtitle>Installed directories</segtitle>
|
---|
[3f3931b0] | 171 |
|
---|
| 172 | <seglistitem>
|
---|
[040ecb6] | 173 | <seg>libhistory.so and libreadline.so</seg>
|
---|
[78cc3be] | 174 | <seg>/usr/include/readline and
|
---|
[fe05b08] | 175 | /usr/share/doc/readline-&readline-version;</seg>
|
---|
[3f3931b0] | 176 | </seglistitem>
|
---|
| 177 | </segmentedlist>
|
---|
| 178 |
|
---|
| 179 | <variablelist>
|
---|
| 180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 181 | <?dbfo list-presentation="list"?>
|
---|
| 182 | <?dbhtml list-presentation="table"?>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="libhistory">
|
---|
| 185 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>Provides a consistent user interface for recalling lines
|
---|
| 188 | of history</para>
|
---|
| 189 | <indexterm zone="ch-system-readline libhistory">
|
---|
| 190 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="libreadline">
|
---|
| 196 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 197 | <listitem>
|
---|
[0d84af1] | 198 | <para>Provides a set of commands for manipulating text entered in an
|
---|
[4c8c128] | 199 | interactive session of a program</para>
|
---|
[3f3931b0] | 200 | <indexterm zone="ch-system-readline libreadline">
|
---|
| 201 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | </variablelist>
|
---|
| 207 |
|
---|
| 208 | </sect2>
|
---|
[3125dfb] | 209 |
|
---|
| 210 | </sect1>
|
---|