[3125dfb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c2133bc] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[3125dfb] | 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 |
|
---|
[f5ccac81] | 31 | <para>The following patch fixes various issues including a problem where Readline
|
---|
| 32 | sometimes will only show 33 characters on a line and then wrap to the next line.</para>
|
---|
[24a08b9] | 33 |
|
---|
[f5ccac81] | 34 | <screen><userinput>patch -Np1 -i ../readline-&readline-version;-fixes-1.patch</userinput></screen>
|
---|
[24a08b9] | 35 |
|
---|
[8748bf3] | 36 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 37 |
|
---|
[f5ccac81] | 38 | <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
[3125dfb] | 39 |
|
---|
| 40 | <para>Compile the package:</para>
|
---|
| 41 |
|
---|
[a66c1cd3] | 42 | <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 43 |
|
---|
[24a08b9] | 44 | <para>The meaning of the make option:</para>
|
---|
| 45 |
|
---|
| 46 | <variablelist>
|
---|
| 47 | <varlistentry>
|
---|
| 48 | <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
|
---|
[072d8cf] | 49 | <listitem><para>This option forces Readline to link against the
|
---|
[752f4e5] | 50 | <filename class="libraryfile">libncurses</filename> library.</para></listitem>
|
---|
[24a08b9] | 51 | </varlistentry>
|
---|
| 52 | </variablelist>
|
---|
| 53 |
|
---|
[3125dfb] | 54 | <para>Install the package:</para>
|
---|
| 55 |
|
---|
| 56 | <screen><userinput>make install</userinput></screen>
|
---|
| 57 |
|
---|
[f5ccac81] | 58 | <para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
|
---|
[3125dfb] | 59 |
|
---|
[f5ccac81] | 60 | <screen><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
|
---|
[3125dfb] | 61 |
|
---|
[f5ccac81] | 62 | <para>Now we move the static libraries to a more appropriate location:</para>
|
---|
[3125dfb] | 63 |
|
---|
[f5ccac81] | 64 | <screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
[3125dfb] | 65 |
|
---|
[f5ccac81] | 66 | <para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
|
---|
[3125dfb] | 67 |
|
---|
[f5ccac81] | 68 | <screen><userinput>rm /lib/lib{readline,history}.so
|
---|
| 69 | ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
|
---|
| 70 | ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
|
---|
[3125dfb] | 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
[c6cb3aa] | 74 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
| 75 | <segmentedlist>
|
---|
| 76 | <segtitle>Installed libraries</segtitle>
|
---|
[69993f4] | 77 | <seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
|
---|
[c6cb3aa] | 78 | </segmentedlist>
|
---|
[3125dfb] | 79 |
|
---|
[2256873] | 80 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
[3ed279f] | 81 | <?dbfo list-presentation="list"?>
|
---|
[ef13657] | 82 |
|
---|
| 83 | <varlistentry id="libhistory">
|
---|
| 84 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 85 | <listitem>
|
---|
[2256873] | 86 | <para>Provides a consistent user interface
|
---|
| 87 | for recalling lines of history</para>
|
---|
[3ed279f] | 88 | <indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
|
---|
[ef13657] | 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
| 91 |
|
---|
| 92 | <varlistentry id="libreadline">
|
---|
| 93 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 94 | <listitem>
|
---|
[2256873] | 95 | <para>Aids in the consistency of user interface
|
---|
[ef13657] | 96 | across discrete programs that need to provide a command line
|
---|
[2256873] | 97 | interface</para>
|
---|
[3ed279f] | 98 | <indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
|
---|
[ef13657] | 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
| 101 |
|
---|
| 102 | </variablelist>
|
---|
| 103 |
|
---|
| 104 | </sect2>
|
---|
[3125dfb] | 105 |
|
---|
| 106 | </sect1>
|
---|
[ef13657] | 107 |
|
---|