[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>
|
---|
| 18 | <seglistitem><seg>XXX SBU</seg><seg>3.8 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[3125dfb] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Readline installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
|
---|
| 24 | GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3125dfb] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[3125dfb] | 29 | <title>Installation of Readline</title>
|
---|
| 30 |
|
---|
[8748bf3] | 31 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 32 |
|
---|
| 33 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | <para>Compile the package:</para>
|
---|
| 36 |
|
---|
[a66c1cd3] | 37 | <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 38 |
|
---|
| 39 | <para>Install the package:</para>
|
---|
| 40 |
|
---|
| 41 | <screen><userinput>make install</userinput></screen>
|
---|
| 42 |
|
---|
[ef13657] | 43 | <para>Give Readline's dynamic libraries more appropriate permissions:</para>
|
---|
[3125dfb] | 44 |
|
---|
[01b2d1b3] | 45 | <screen><userinput>chmod 755 /usr/lib/*.&readline-version;</userinput></screen>
|
---|
[3125dfb] | 46 |
|
---|
[ef13657] | 47 | <para>Move the dynamic libraries to a more appropriate location:</para>
|
---|
[3125dfb] | 48 |
|
---|
[8748bf3] | 49 | <screen><userinput>mv /usr/lib/lib{readline,history}.so.5* /lib</userinput></screen>
|
---|
[3125dfb] | 50 |
|
---|
| 51 | <para>Because the libraries have been moved, a few symlinks are now pointing to
|
---|
| 52 | non-existent files. Recreate those symlinks:</para>
|
---|
| 53 |
|
---|
[8748bf3] | 54 | <screen><userinput>ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so
|
---|
[9c67b6a] | 55 | ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so</userinput></screen>
|
---|
[3125dfb] | 56 |
|
---|
| 57 | </sect2>
|
---|
| 58 |
|
---|
| 59 |
|
---|
[c6cb3aa] | 60 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
| 61 | <segmentedlist>
|
---|
| 62 | <segtitle>Installed libraries</segtitle>
|
---|
[ef13657] | 63 | <seglistitem><seg>libhistory.[a,so], libreadline.[a,so]</seg></seglistitem>
|
---|
[c6cb3aa] | 64 | </segmentedlist>
|
---|
[3125dfb] | 65 |
|
---|
[ef13657] | 66 | <variablelist><title>Short descriptions</title>
|
---|
| 67 |
|
---|
| 68 | <varlistentry id="libhistory">
|
---|
| 69 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 70 | <listitem>
|
---|
| 71 | <indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
|
---|
| 72 | <para>a programming tool that provides a consistent user interface
|
---|
| 73 | for recalling lines of history.</para>
|
---|
| 74 | </listitem>
|
---|
| 75 | </varlistentry>
|
---|
| 76 |
|
---|
| 77 | <varlistentry id="libreadline">
|
---|
| 78 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 79 | <listitem>
|
---|
| 80 | <indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
|
---|
| 81 | <para>a utility which aids in the consistency of user interface
|
---|
| 82 | across discrete programs that need to provide a command line
|
---|
| 83 | interface.</para>
|
---|
| 84 | </listitem>
|
---|
| 85 | </varlistentry>
|
---|
| 86 |
|
---|
| 87 | </variablelist>
|
---|
| 88 |
|
---|
| 89 | </sect2>
|
---|
[3125dfb] | 90 |
|
---|
| 91 | </sect1>
|
---|
[ef13657] | 92 |
|
---|