1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-readline" role="wrap">
|
---|
9 | <?dbhtml filename="readline.html"?>
|
---|
10 |
|
---|
11 | <title>Readline-&readline-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-readline">
|
---|
14 | <primary sortas="a-Readline">Readline</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Readline package is a set of libraries that offers command-line
|
---|
21 | editing and history capabilities.</para>
|
---|
22 |
|
---|
23 | <segmentedlist>
|
---|
24 | <segtitle>&buildtime;</segtitle>
|
---|
25 | <segtitle>&diskspace;</segtitle>
|
---|
26 |
|
---|
27 | <seglistitem>
|
---|
28 | <seg>&readline-ch6-sbu;</seg>
|
---|
29 | <seg>&readline-ch6-du;</seg>
|
---|
30 | </seglistitem>
|
---|
31 | </segmentedlist>
|
---|
32 |
|
---|
33 | </sect2>
|
---|
34 |
|
---|
35 | <sect2 role="installation">
|
---|
36 | <title>Installation of Readline</title>
|
---|
37 |
|
---|
38 | <para>Upstream developers have fixed several issues since the initial
|
---|
39 | release of Readline-&readline-version;. Apply those fixes:</para>
|
---|
40 |
|
---|
41 | <screen><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
|
---|
42 |
|
---|
43 | <para>Reinstalling Readline will cause the old libraries to be moved to
|
---|
44 | <libraryname>.old. While this is normally not a problem, in some cases
|
---|
45 | it can trigger a linking bug in <command>ldconfig</command>. This can be
|
---|
46 | avoided by issuing the following two seds:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>sed -i '/MV.*old/d' Makefile.in
|
---|
49 | sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
|
---|
50 |
|
---|
51 | <para>Prepare Readline for compilation:</para>
|
---|
52 |
|
---|
53 | <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
54 |
|
---|
55 | <para>Compile the package:</para>
|
---|
56 |
|
---|
57 | <screen><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
|
---|
58 |
|
---|
59 | <variablelist>
|
---|
60 | <title>The meaning of the make option:</title>
|
---|
61 |
|
---|
62 | <varlistentry>
|
---|
63 | <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
|
---|
64 | <listitem>
|
---|
65 | <para>This option forces Readline to link against the
|
---|
66 | <filename class="libraryfile">libncurses</filename> (really,
|
---|
67 | <filename class="libraryfile">libncursesw</filename>) library.</para>
|
---|
68 | </listitem>
|
---|
69 | </varlistentry>
|
---|
70 |
|
---|
71 | </variablelist>
|
---|
72 |
|
---|
73 | <para>This package does not come with a test suite.</para>
|
---|
74 |
|
---|
75 | <para>Install the package:</para>
|
---|
76 |
|
---|
77 | <screen><userinput>make install</userinput></screen>
|
---|
78 |
|
---|
79 | <para>Give Readline's dynamic libraries more appropriate permissions:</para>
|
---|
80 |
|
---|
81 | <screen><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen>
|
---|
82 |
|
---|
83 | <para>Now move the static libraries to a more appropriate location:</para>
|
---|
84 |
|
---|
85 | <screen><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
86 |
|
---|
87 | <para>Next, remove the <filename class="extension">.so</filename> files in
|
---|
88 | <filename class="directory">/lib</filename> and relink them into <filename
|
---|
89 | class="directory">/usr/lib</filename>:</para>
|
---|
90 |
|
---|
91 | <screen><userinput>rm -v /lib/lib{readline,history}.so
|
---|
92 | ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
|
---|
93 | ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <sect2 id="contents-readline" role="content">
|
---|
98 | <title>Contents of Readline</title>
|
---|
99 |
|
---|
100 | <segmentedlist>
|
---|
101 | <segtitle>Installed libraries</segtitle>
|
---|
102 |
|
---|
103 | <seglistitem>
|
---|
104 | <seg>libhistory.{a,so}, and libreadline.{a,so}</seg>
|
---|
105 | </seglistitem>
|
---|
106 | </segmentedlist>
|
---|
107 |
|
---|
108 | <variablelist>
|
---|
109 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
110 | <?dbfo list-presentation="list"?>
|
---|
111 | <?dbhtml list-presentation="table"?>
|
---|
112 |
|
---|
113 | <varlistentry id="libhistory">
|
---|
114 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
115 | <listitem>
|
---|
116 | <para>Provides a consistent user interface for recalling lines
|
---|
117 | of history</para>
|
---|
118 | <indexterm zone="ch-system-readline libhistory">
|
---|
119 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
120 | </indexterm>
|
---|
121 | </listitem>
|
---|
122 | </varlistentry>
|
---|
123 |
|
---|
124 | <varlistentry id="libreadline">
|
---|
125 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
126 | <listitem>
|
---|
127 | <para>Aids in the consistency of user interface across discrete
|
---|
128 | programs that need to provide a command line interface</para>
|
---|
129 | <indexterm zone="ch-system-readline libreadline">
|
---|
130 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
131 | </indexterm>
|
---|
132 | </listitem>
|
---|
133 | </varlistentry>
|
---|
134 |
|
---|
135 | </variablelist>
|
---|
136 |
|
---|
137 | </sect2>
|
---|
138 |
|
---|
139 | </sect1>
|
---|