[3125dfb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ad2c960] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[3125dfb] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[ad2c960] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-readline" role="wrap">
|
---|
[ad2c960] | 9 | <?dbhtml filename="readline.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Readline-&readline-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-readline">
|
---|
| 14 | <primary sortas="a-Readline">Readline</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
[3125dfb] | 19 |
|
---|
[ad2c960] | 20 | <para>The Readline package is a set of libraries that offers command-line
|
---|
| 21 | editing and history capabilities.</para>
|
---|
[3125dfb] | 22 |
|
---|
[ad2c960] | 23 | <segmentedlist>
|
---|
| 24 | <segtitle>&buildtime;</segtitle>
|
---|
| 25 | <segtitle>&diskspace;</segtitle>
|
---|
[3125dfb] | 26 |
|
---|
[ad2c960] | 27 | <seglistitem>
|
---|
| 28 | <seg>0.11 SBU</seg>
|
---|
| 29 | <seg>9.1 MB</seg>
|
---|
| 30 | </seglistitem>
|
---|
| 31 | </segmentedlist>
|
---|
[3125dfb] | 32 |
|
---|
[ad2c960] | 33 | <segmentedlist>
|
---|
| 34 | <segtitle>&dependencies;</segtitle>
|
---|
[3125dfb] | 35 |
|
---|
[ad2c960] | 36 | <seglistitem>
|
---|
| 37 | <seg>Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make,
|
---|
| 38 | Ncurses, and Sed</seg>
|
---|
| 39 | </seglistitem>
|
---|
| 40 | </segmentedlist>
|
---|
[3125dfb] | 41 |
|
---|
[ad2c960] | 42 | </sect2>
|
---|
| 43 |
|
---|
| 44 | <sect2 role="installation">
|
---|
| 45 | <title>Installation of Readline</title>
|
---|
| 46 |
|
---|
[d33d8cc] | 47 | <para>Upstream developers have fixed several issues since the initial
|
---|
| 48 | release of Readline-&readline-version;. Apply those fixes:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
|
---|
| 51 |
|
---|
[ad2c960] | 52 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 53 |
|
---|
[5091251] | 54 | <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
[3125dfb] | 55 |
|
---|
[ad2c960] | 56 | <para>Compile the package:</para>
|
---|
[3125dfb] | 57 |
|
---|
[2c75e3c] | 58 | <screen><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 59 |
|
---|
[ad2c960] | 60 | <variablelist>
|
---|
| 61 | <title>The meaning of the make option:</title>
|
---|
[81fd230] | 62 |
|
---|
[ad2c960] | 63 | <varlistentry>
|
---|
| 64 | <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>This option forces Readline to link against the
|
---|
| 67 | <filename class="libraryfile">libncurses</filename> (really,
|
---|
| 68 | <filename class="libraryfile">libncursesw</filename>) library.</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </varlistentry>
|
---|
[81fd230] | 71 |
|
---|
[ad2c960] | 72 | </variablelist>
|
---|
[0be3d41] | 73 |
|
---|
[ad2c960] | 74 | <para>This package does not come with a test suite.</para>
|
---|
| 75 |
|
---|
| 76 | <para>Install the package:</para>
|
---|
[3125dfb] | 77 |
|
---|
| 78 | <screen><userinput>make install</userinput></screen>
|
---|
| 79 |
|
---|
[ad2c960] | 80 | <para>Give Readline's dynamic libraries more appropriate permissions:</para>
|
---|
[3125dfb] | 81 |
|
---|
[5998892] | 82 | <screen><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen>
|
---|
[3125dfb] | 83 |
|
---|
[ad2c960] | 84 | <para>Now move the static libraries to a more appropriate location:</para>
|
---|
[3125dfb] | 85 |
|
---|
[5998892] | 86 | <screen><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
[3125dfb] | 87 |
|
---|
[ad2c960] | 88 | <para>Next, remove the <filename class="extension">.so</filename> files in
|
---|
| 89 | <filename class="directory">/lib</filename> and relink them into <filename
|
---|
| 90 | class="directory">/usr/lib</filename>.</para>
|
---|
[7111666] | 91 |
|
---|
[5998892] | 92 | <screen><userinput>rm -v /lib/lib{readline,history}.so
|
---|
| 93 | ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
|
---|
| 94 | ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
|
---|
[81fd230] | 95 |
|
---|
[ad2c960] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 id="contents-readline" role="content">
|
---|
| 99 | <title>Contents of Readline</title>
|
---|
| 100 |
|
---|
| 101 | <segmentedlist>
|
---|
| 102 | <segtitle>Installed libraries</segtitle>
|
---|
| 103 |
|
---|
| 104 | <seglistitem>
|
---|
| 105 | <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
|
---|
| 106 | </seglistitem>
|
---|
| 107 | </segmentedlist>
|
---|
| 108 |
|
---|
| 109 | <variablelist>
|
---|
| 110 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 111 | <?dbfo list-presentation="list"?>
|
---|
| 112 | <?dbhtml list-presentation="table"?>
|
---|
| 113 |
|
---|
| 114 | <varlistentry id="libhistory">
|
---|
| 115 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 116 | <listitem>
|
---|
| 117 | <para>Provides a consistent user interface for recalling lines
|
---|
| 118 | of history</para>
|
---|
| 119 | <indexterm zone="ch-system-readline libhistory">
|
---|
| 120 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | <varlistentry id="libreadline">
|
---|
| 126 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>Aids in the consistency of user interface across discrete
|
---|
| 129 | programs that need to provide a command line interface</para>
|
---|
| 130 | <indexterm zone="ch-system-readline libreadline">
|
---|
| 131 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | </variablelist>
|
---|
| 137 |
|
---|
| 138 | </sect2>
|
---|
[3125dfb] | 139 |
|
---|
| 140 | </sect1>
|
---|