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">
|
---|
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 | <para>The Readline package contains the Readline command-line library.</para>
|
---|
13 |
|
---|
14 | <screen>&buildtime; XXX SBU
|
---|
15 | &diskspace; 3.8 MB</screen>
|
---|
16 |
|
---|
17 | <para>Readline installation depends on: Binutils, Coreutils, Diffutils, Gawk,
|
---|
18 | GCC, Glibc, Grep, Make, Ncurses, Sed.</para>
|
---|
19 |
|
---|
20 |
|
---|
21 | <sect2>
|
---|
22 | <title>Installation of Readline</title>
|
---|
23 |
|
---|
24 | <para>Readline has a number of bugs in it that cause it to not behave the
|
---|
25 | way it is expected at times. Fix this behavior with the following
|
---|
26 | patch:</para>
|
---|
27 |
|
---|
28 | <screen><userinput>patch -Np1 -i ../readline-&readline-version;-gnu-fixes-1.patch</userinput></screen>
|
---|
29 |
|
---|
30 | <para>Now prepare Readline for compilation:</para>
|
---|
31 |
|
---|
32 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
33 |
|
---|
34 | <para>Compile the package:</para>
|
---|
35 |
|
---|
36 | <screen><userinput>make</userinput></screen>
|
---|
37 |
|
---|
38 | <para>Install the package:</para>
|
---|
39 |
|
---|
40 | <screen><userinput>make install</userinput></screen>
|
---|
41 |
|
---|
42 | <para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>chmod 644 /usr/lib/*.&readline-version;</userinput></screen>
|
---|
45 |
|
---|
46 | <para>And move them to a more appropriate location:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>mv /usr/lib/lib{readline,history}.so.4* /lib</userinput></screen>
|
---|
49 |
|
---|
50 | <para>Because the libraries have been moved, a few symlinks are now pointing to
|
---|
51 | non-existent files. Recreate those symlinks:</para>
|
---|
52 |
|
---|
53 | <screen><userinput>ln -sf ../../lib/libhistory.so.4 /usr/lib/libhistory.so
|
---|
54 | ln -sf ../../lib/libreadline.so.4 /usr/lib/libreadline.so</userinput></screen>
|
---|
55 |
|
---|
56 | </sect2>
|
---|
57 |
|
---|
58 |
|
---|
59 | <sect2 id="contents-readline"><title>Contents of Readline</title>
|
---|
60 | <para><emphasis>Installed libraries</emphasis>: Not checked.</para>
|
---|
61 | </sect2>
|
---|
62 |
|
---|
63 |
|
---|
64 | </sect1>
|
---|