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