[3125dfb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 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">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[3125dfb] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[3125dfb] | 7 | ]>
|
---|
[81fd230] | 8 | <sect1 id="ch-system-readline" role="wrap">
|
---|
[3125dfb] | 9 | <title>Readline-&readline-version;</title>
|
---|
| 10 | <?dbhtml filename="readline.html"?>
|
---|
| 11 |
|
---|
| 12 | <indexterm zone="ch-system-readline"><primary sortas="a-Readline">Readline</primary></indexterm>
|
---|
| 13 |
|
---|
[a001133] | 14 | <sect2 role="package"><title/>
|
---|
[81fd230] | 15 | <para>The Readline package contains the Readline command-line library.</para>
|
---|
[3125dfb] | 16 |
|
---|
[a001133] | 17 | <segmentedlist>
|
---|
| 18 | <segtitle>&buildtime;</segtitle>
|
---|
| 19 | <segtitle>&diskspace;</segtitle>
|
---|
[1a017db] | 20 | <seglistitem><seg>0.11 SBU</seg><seg>9.1 MB</seg></seglistitem>
|
---|
[a001133] | 21 | </segmentedlist>
|
---|
[3125dfb] | 22 |
|
---|
[81fd230] | 23 | <segmentedlist>
|
---|
[45992ae] | 24 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 25 | <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
|
---|
| 26 | GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
---|
| 27 | </segmentedlist>
|
---|
[a001133] | 28 | </sect2>
|
---|
[3125dfb] | 29 |
|
---|
[a001133] | 30 | <sect2 role="installation">
|
---|
[3125dfb] | 31 | <title>Installation of Readline</title>
|
---|
| 32 |
|
---|
[81fd230] | 33 | <para>The following patch includes a fix for the problem where
|
---|
| 34 | Readline sometimes only shows 33 characters on a line and then wraps
|
---|
| 35 | to the next line. It also includes other fixes recommended by the
|
---|
| 36 | Readline author.</para>
|
---|
[5e81f02] | 37 |
|
---|
[3e36a78] | 38 | <screen><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
|
---|
[5e81f02] | 39 |
|
---|
[e8d07afc] | 40 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 41 |
|
---|
[5091251] | 42 | <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
[3125dfb] | 43 |
|
---|
| 44 | <para>Compile the package:</para>
|
---|
| 45 |
|
---|
[a66c1cd3] | 46 | <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 47 |
|
---|
[81fd230] | 48 | <para>The meaning of the make option:</para>
|
---|
| 49 |
|
---|
| 50 | <variablelist>
|
---|
| 51 | <varlistentry>
|
---|
| 52 | <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
|
---|
| 53 | <listitem><para>This option forces Readline to link against the
|
---|
| 54 | <filename class="libraryfile">libncurses</filename> library.</para></listitem>
|
---|
| 55 | </varlistentry>
|
---|
| 56 | </variablelist>
|
---|
| 57 |
|
---|
[3125dfb] | 58 | <para>Install the package:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput>make install</userinput></screen>
|
---|
| 61 |
|
---|
[81fd230] | 62 | <para>Give Readline's dynamic libraries more appropriate permissions:</para>
|
---|
[3125dfb] | 63 |
|
---|
[30c872d] | 64 | <screen><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
|
---|
[3125dfb] | 65 |
|
---|
[81fd230] | 66 | <para>Now we move the static libraries to a more appropriate
|
---|
| 67 | location:</para>
|
---|
[3125dfb] | 68 |
|
---|
[5091251] | 69 | <screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
[3125dfb] | 70 |
|
---|
[bc2136e] | 71 | <para>Next we will remove the <filename class="extension">.so</filename> files in
|
---|
[81fd230] | 72 | <filename class="directory">/lib</filename> and relink them into
|
---|
| 73 | <filename class="directory">/usr/lib</filename>.</para>
|
---|
[7111666] | 74 |
|
---|
| 75 | <screen><userinput>rm /lib/lib{readline,history}.so
|
---|
| 76 | ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
|
---|
| 77 | ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
|
---|
[81fd230] | 78 |
|
---|
[3125dfb] | 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 |
|
---|
[c6cb3aa] | 82 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
[81fd230] | 83 | <segmentedlist>
|
---|
| 84 | <segtitle>Installed libraries</segtitle>
|
---|
| 85 | <seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
|
---|
| 86 | </segmentedlist>
|
---|
[3f0c882] | 87 |
|
---|
[81fd230] | 88 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 89 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 90 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 91 |
|
---|
| 92 | <varlistentry id="libhistory">
|
---|
| 93 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 94 | <listitem>
|
---|
| 95 | <para>Provides a consistent user interface
|
---|
| 96 | for recalling lines of history</para>
|
---|
| 97 | <indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
|
---|
| 98 | </listitem>
|
---|
| 99 | </varlistentry>
|
---|
| 100 |
|
---|
| 101 | <varlistentry id="libreadline">
|
---|
| 102 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>Aids in the consistency of user interface
|
---|
| 105 | across discrete programs that need to provide a command line
|
---|
| 106 | interface</para>
|
---|
| 107 | <indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 |
|
---|
| 111 | </variablelist>
|
---|
[3f0c882] | 112 |
|
---|
[3125dfb] | 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | </sect1>
|
---|
[81fd230] | 116 |
|
---|