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