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 | ]>
|
---|
6 | <sect1 id="ch-system-readline" xreflabel="Readline" role="wrap">
|
---|
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 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Readline package contains the Readline command-line library.</para>
|
---|
14 |
|
---|
15 | <segmentedlist>
|
---|
16 | <segtitle>&buildtime;</segtitle>
|
---|
17 | <segtitle>&diskspace;</segtitle>
|
---|
18 | <seglistitem><seg>0.11 SBU</seg><seg>3.8 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | <segmentedlist>
|
---|
22 | <segtitle>Readline installation depends on</segtitle>
|
---|
23 | <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
|
---|
24 | GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
---|
25 | </segmentedlist>
|
---|
26 | </sect2>
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of Readline</title>
|
---|
30 |
|
---|
31 | <para>The following patch fixes a problem where Readline sometimes
|
---|
32 | only shows 33 characters on a line and then wraps to the next
|
---|
33 | line.</para>
|
---|
34 |
|
---|
35 | <screen><userinput>patch -Np1 -i ../readline-&readline-version;-display_wrap-1.patch</userinput></screen>
|
---|
36 |
|
---|
37 | <para>Prepare Readline for compilation:</para>
|
---|
38 |
|
---|
39 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
40 |
|
---|
41 | <para>Compile the package:</para>
|
---|
42 |
|
---|
43 | <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
|
---|
44 |
|
---|
45 | <para>The meaning of the make option:</para>
|
---|
46 |
|
---|
47 | <variablelist>
|
---|
48 | <varlistentry>
|
---|
49 | <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
|
---|
50 | <listitem><para>This option forces readline to link against the
|
---|
51 | <filename>libncurses</filename> library.</para></listitem>
|
---|
52 | </varlistentry>
|
---|
53 | </variablelist>
|
---|
54 |
|
---|
55 | <para>Install the package:</para>
|
---|
56 |
|
---|
57 | <screen><userinput>make install</userinput></screen>
|
---|
58 |
|
---|
59 | <para>Give Readline's dynamic libraries more appropriate permissions:</para>
|
---|
60 |
|
---|
61 | <screen><userinput>chmod 755 /usr/lib/*.&readline-version;</userinput></screen>
|
---|
62 |
|
---|
63 | <para>Move the dynamic libraries to a more appropriate location:</para>
|
---|
64 |
|
---|
65 | <screen><userinput>mv /usr/lib/lib{readline,history}.so.5* /lib</userinput></screen>
|
---|
66 |
|
---|
67 | <para>Because the libraries have been moved, a few symlinks are now pointing to
|
---|
68 | non-existent files. Recreate those symlinks:</para>
|
---|
69 |
|
---|
70 | <screen><userinput>ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so
|
---|
71 | ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so</userinput></screen>
|
---|
72 |
|
---|
73 | </sect2>
|
---|
74 |
|
---|
75 |
|
---|
76 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
77 | <segmentedlist>
|
---|
78 | <segtitle>Installed libraries</segtitle>
|
---|
79 | <seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
|
---|
80 | </segmentedlist>
|
---|
81 |
|
---|
82 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
83 | <?dbfo list-presentation="list"?>
|
---|
84 |
|
---|
85 | <varlistentry id="libhistory">
|
---|
86 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
87 | <listitem>
|
---|
88 | <para>provides a consistent user interface
|
---|
89 | for recalling lines of history.</para>
|
---|
90 | <indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
|
---|
91 | </listitem>
|
---|
92 | </varlistentry>
|
---|
93 |
|
---|
94 | <varlistentry id="libreadline">
|
---|
95 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
96 | <listitem>
|
---|
97 | <para>aids in the consistency of user interface
|
---|
98 | across discrete programs that need to provide a command line
|
---|
99 | interface.</para>
|
---|
100 | <indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
|
---|
101 | </listitem>
|
---|
102 | </varlistentry>
|
---|
103 |
|
---|
104 | </variablelist>
|
---|
105 |
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | </sect1>
|
---|
109 |
|
---|