1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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 | </sect2>
|
---|
24 |
|
---|
25 | <sect2 role="installation">
|
---|
26 | <title>Installation of Readline</title>
|
---|
27 |
|
---|
28 | <para os="p1">The following patch contains updates from the maintainer. The
|
---|
29 | maintainer of Readline only releases these patches to fix serious issues:</para>
|
---|
30 |
|
---|
31 | <screen os="p2"><userinput>patch -Np1 -i ../&readline-branch_update-patch;</userinput></screen>
|
---|
32 |
|
---|
33 | <para os="a">Prepare Readline for compilation:</para>
|
---|
34 |
|
---|
35 | <screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
36 |
|
---|
37 | <para os="c">Compile the package:</para>
|
---|
38 |
|
---|
39 | <screen os="d"><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
|
---|
40 |
|
---|
41 | <para os="e">This package does not come with a test suite.</para>
|
---|
42 |
|
---|
43 | <para os="f">Install the package:</para>
|
---|
44 |
|
---|
45 | <screen os="g"><userinput>make htmldir=/usr/share/doc/readline-&readline-version; install</userinput></screen>
|
---|
46 |
|
---|
47 | <para os="h">Now move the static libraries to a more appropriate location:</para>
|
---|
48 |
|
---|
49 | <screen os="i"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
50 |
|
---|
51 | <para os="j">Next, relink the dynamic libraries into <filename class="directory">/usr/lib</filename> and remove the <filename class="extension">.so</filename> files in <filename class="directory">/lib</filename>.</para>
|
---|
52 |
|
---|
53 | <screen os="k"><userinput>ln -svf ../../lib/$(readlink /lib/libreadline.so) /usr/lib/libreadline.so
|
---|
54 | ln -svf ../../lib/$(readlink /lib/libhistory.so) /usr/lib/libhistory.so
|
---|
55 | rm -v /lib/lib{readline,history}.so</userinput></screen>
|
---|
56 |
|
---|
57 | </sect2>
|
---|
58 |
|
---|
59 | <sect2 id="contents-readline" role="content">
|
---|
60 | <title>Contents of Readline</title>
|
---|
61 |
|
---|
62 | <segmentedlist>
|
---|
63 | <segtitle>Installed libraries</segtitle>
|
---|
64 | <segtitle>Installed directories</segtitle>
|
---|
65 |
|
---|
66 | <seglistitem>
|
---|
67 | <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
|
---|
68 | <seg>/usr/include/readline, /usr/share/doc/readline-&readline-version;, /usr/share/readline</seg>
|
---|
69 | </seglistitem>
|
---|
70 | </segmentedlist>
|
---|
71 |
|
---|
72 | <variablelist>
|
---|
73 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
74 | <?dbfo list-presentation="list"?>
|
---|
75 | <?dbhtml list-presentation="table"?>
|
---|
76 |
|
---|
77 | <varlistentry id="libhistory">
|
---|
78 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
79 | <listitem>
|
---|
80 | <para>Provides a consistent user interface
|
---|
81 | for recalling lines of history</para>
|
---|
82 | <indexterm zone="ch-system-readline libhistory">
|
---|
83 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
84 | </indexterm>
|
---|
85 | </listitem>
|
---|
86 | </varlistentry>
|
---|
87 |
|
---|
88 | <varlistentry id="libreadline">
|
---|
89 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
90 | <listitem>
|
---|
91 | <para>Aids in the consistency of user interface
|
---|
92 | across discrete programs that need to provide a command line
|
---|
93 | interface</para>
|
---|
94 | <indexterm zone="ch-system-readline libreadline">
|
---|
95 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
96 | </indexterm>
|
---|
97 | </listitem>
|
---|
98 | </varlistentry>
|
---|
99 |
|
---|
100 | </variablelist>
|
---|
101 |
|
---|
102 | </sect2>
|
---|
103 |
|
---|
104 | </sect1>
|
---|