[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 | ]>
|
---|
[752f4e5] | 6 | <sect1 id="ch-system-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>
|
---|
[072d8cf] | 50 | <listitem><para>This option forces Readline to link against the
|
---|
[752f4e5] | 51 | <filename class="libraryfile">libncurses</filename> library.</para></listitem>
|
---|
[24a08b9] | 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 |
|
---|
[38bb44a] | 63 | <beginpage/>
|
---|
[ef13657] | 64 | <para>Move the dynamic libraries to a more appropriate location:</para>
|
---|
[3125dfb] | 65 |
|
---|
[8748bf3] | 66 | <screen><userinput>mv /usr/lib/lib{readline,history}.so.5* /lib</userinput></screen>
|
---|
[3125dfb] | 67 |
|
---|
| 68 | <para>Because the libraries have been moved, a few symlinks are now pointing to
|
---|
| 69 | non-existent files. Recreate those symlinks:</para>
|
---|
| 70 |
|
---|
[8748bf3] | 71 | <screen><userinput>ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so
|
---|
[9c67b6a] | 72 | ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so</userinput></screen>
|
---|
[3125dfb] | 73 |
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 |
|
---|
[c6cb3aa] | 77 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
| 78 | <segmentedlist>
|
---|
| 79 | <segtitle>Installed libraries</segtitle>
|
---|
[69993f4] | 80 | <seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
|
---|
[c6cb3aa] | 81 | </segmentedlist>
|
---|
[3125dfb] | 82 |
|
---|
[2256873] | 83 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
[3ed279f] | 84 | <?dbfo list-presentation="list"?>
|
---|
[ef13657] | 85 |
|
---|
| 86 | <varlistentry id="libhistory">
|
---|
| 87 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 88 | <listitem>
|
---|
[2256873] | 89 | <para>Provides a consistent user interface
|
---|
| 90 | for recalling lines of history</para>
|
---|
[3ed279f] | 91 | <indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
|
---|
[ef13657] | 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="libreadline">
|
---|
| 96 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 97 | <listitem>
|
---|
[2256873] | 98 | <para>Aids in the consistency of user interface
|
---|
[ef13657] | 99 | across discrete programs that need to provide a command line
|
---|
[2256873] | 100 | interface</para>
|
---|
[3ed279f] | 101 | <indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
|
---|
[ef13657] | 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | </variablelist>
|
---|
| 106 |
|
---|
| 107 | </sect2>
|
---|
[3125dfb] | 108 |
|
---|
| 109 | </sect1>
|
---|
[ef13657] | 110 |
|
---|