[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 |
|
---|
| 31 | <para>Readline has a number of bugs in it that cause it to not behave the
|
---|
| 32 | way it is expected at times. Fix this behavior with the following
|
---|
| 33 | patch:</para>
|
---|
| 34 |
|
---|
[71bbe67] | 35 | <screen><userinput>patch -Np1 -i ../readline-&readline-version;-gnu_fixes-1.patch</userinput></screen>
|
---|
[3125dfb] | 36 |
|
---|
| 37 | <para>Now prepare Readline for compilation:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 40 |
|
---|
| 41 | <para>Compile the package:</para>
|
---|
| 42 |
|
---|
[a66c1cd3] | 43 | <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 44 |
|
---|
| 45 | <para>Install the package:</para>
|
---|
| 46 |
|
---|
| 47 | <screen><userinput>make install</userinput></screen>
|
---|
| 48 |
|
---|
| 49 | <para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
|
---|
| 50 |
|
---|
[01b2d1b3] | 51 | <screen><userinput>chmod 755 /usr/lib/*.&readline-version;</userinput></screen>
|
---|
[3125dfb] | 52 |
|
---|
| 53 | <para>And move them to a more appropriate location:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput>mv /usr/lib/lib{readline,history}.so.4* /lib</userinput></screen>
|
---|
| 56 |
|
---|
| 57 | <para>Because the libraries have been moved, a few symlinks are now pointing to
|
---|
| 58 | non-existent files. Recreate those symlinks:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput>ln -sf ../../lib/libhistory.so.4 /usr/lib/libhistory.so
|
---|
| 61 | ln -sf ../../lib/libreadline.so.4 /usr/lib/libreadline.so</userinput></screen>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 |
|
---|
[c6cb3aa] | 66 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
| 67 | <segmentedlist>
|
---|
| 68 | <segtitle>Installed libraries</segtitle>
|
---|
| 69 | <seglistitem><seg>Not checked</seg></seglistitem>
|
---|
| 70 | </segmentedlist>
|
---|
[3125dfb] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | </sect1>
|
---|