[3125dfb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-readline" xreflabel="Readline" role="wrap">
|
---|
[3125dfb] | 7 | <title>Readline-&readline-version;</title>
|
---|
| 8 | <?dbhtml filename="readline.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-readline"><primary sortas="a-Readline">Readline</primary></indexterm>
|
---|
| 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[3125dfb] | 13 | <para>The Readline package contains the Readline command-line library.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
[8b320e7] | 18 | <seglistitem><seg>0.11 SBU</seg><seg>3.8 MB</seg></seglistitem>
|
---|
[a001133] | 19 | </segmentedlist>
|
---|
[3125dfb] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Readline installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
|
---|
[69993f4] | 24 | GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
---|
[a001133] | 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3125dfb] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[3125dfb] | 29 | <title>Installation of Readline</title>
|
---|
| 30 |
|
---|
[24a08b9] | 31 | <para>The following patch fixes a problem where Readline sometimes
|
---|
[69993f4] | 32 | only shows 33 characters on a line and then wraps to the next
|
---|
[24a08b9] | 33 | line.</para>
|
---|
| 34 |
|
---|
| 35 | <screen><userinput>patch -Np1 -i ../readline-&readline-version;-display_wrap-1.patch</userinput></screen>
|
---|
| 36 |
|
---|
[8748bf3] | 37 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 38 |
|
---|
| 39 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 40 |
|
---|
| 41 | <para>Compile the package:</para>
|
---|
| 42 |
|
---|
[a66c1cd3] | 43 | <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 44 |
|
---|
[24a08b9] | 45 | <para>The meaning of the make option:</para>
|
---|
| 46 |
|
---|
| 47 | <variablelist>
|
---|
| 48 | <varlistentry>
|
---|
| 49 | <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
|
---|
| 50 | <listitem><para>This option forces readline to link against the
|
---|
| 51 | <filename>libncurses</filename> library.</para></listitem>
|
---|
| 52 | </varlistentry>
|
---|
| 53 | </variablelist>
|
---|
| 54 |
|
---|
[3125dfb] | 55 | <para>Install the package:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput>make install</userinput></screen>
|
---|
| 58 |
|
---|
[ef13657] | 59 | <para>Give Readline's dynamic libraries more appropriate permissions:</para>
|
---|
[3125dfb] | 60 |
|
---|
[01b2d1b3] | 61 | <screen><userinput>chmod 755 /usr/lib/*.&readline-version;</userinput></screen>
|
---|
[3125dfb] | 62 |
|
---|
[ef13657] | 63 | <para>Move the dynamic libraries to a more appropriate location:</para>
|
---|
[3125dfb] | 64 |
|
---|
[8748bf3] | 65 | <screen><userinput>mv /usr/lib/lib{readline,history}.so.5* /lib</userinput></screen>
|
---|
[3125dfb] | 66 |
|
---|
| 67 | <para>Because the libraries have been moved, a few symlinks are now pointing to
|
---|
| 68 | non-existent files. Recreate those symlinks:</para>
|
---|
| 69 |
|
---|
[8748bf3] | 70 | <screen><userinput>ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so
|
---|
[9c67b6a] | 71 | ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so</userinput></screen>
|
---|
[3125dfb] | 72 |
|
---|
| 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 |
|
---|
[c6cb3aa] | 76 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
| 77 | <segmentedlist>
|
---|
| 78 | <segtitle>Installed libraries</segtitle>
|
---|
[69993f4] | 79 | <seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
|
---|
[c6cb3aa] | 80 | </segmentedlist>
|
---|
[3125dfb] | 81 |
|
---|
[3ed279f] | 82 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
| 83 | <?dbfo list-presentation="list"?>
|
---|
[ef13657] | 84 |
|
---|
| 85 | <varlistentry id="libhistory">
|
---|
| 86 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 87 | <listitem>
|
---|
[69993f4] | 88 | <para>provides a consistent user interface
|
---|
[ef13657] | 89 | for recalling lines of history.</para>
|
---|
[3ed279f] | 90 | <indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
|
---|
[ef13657] | 91 | </listitem>
|
---|
| 92 | </varlistentry>
|
---|
| 93 |
|
---|
| 94 | <varlistentry id="libreadline">
|
---|
| 95 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 96 | <listitem>
|
---|
[69993f4] | 97 | <para>aids in the consistency of user interface
|
---|
[ef13657] | 98 | across discrete programs that need to provide a command line
|
---|
| 99 | interface.</para>
|
---|
[3ed279f] | 100 | <indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
|
---|
[ef13657] | 101 | </listitem>
|
---|
| 102 | </varlistentry>
|
---|
| 103 |
|
---|
| 104 | </variablelist>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
[3125dfb] | 107 |
|
---|
| 108 | </sect1>
|
---|
[ef13657] | 109 |
|
---|