[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 |
|
---|
[51504be] | 31 | <para>The following patch fixes various issues including a problem where Readline
|
---|
| 32 | sometimes will only show 33 characters on a line and then wrap to the next line.</para>
|
---|
[5e81f02] | 33 |
|
---|
[51504be] | 34 | <screen><userinput>patch -Np1 -i ../readline-&readline-version;-fixes-1.patch</userinput></screen>
|
---|
[5e81f02] | 35 |
|
---|
[e8d07afc] | 36 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 37 |
|
---|
[5091251] | 38 | <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
[3125dfb] | 39 |
|
---|
| 40 | <para>Compile the package:</para>
|
---|
| 41 |
|
---|
[a66c1cd3] | 42 | <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
|
---|
[3125dfb] | 43 |
|
---|
| 44 | <para>Install the package:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput>make install</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
|
---|
| 49 |
|
---|
[30c872d] | 50 | <screen><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
|
---|
[3125dfb] | 51 |
|
---|
[ee6618f] | 52 | <para>Now we move the static libraries to a more appropriate location:</para>
|
---|
[3125dfb] | 53 |
|
---|
[5091251] | 54 | <screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
[3125dfb] | 55 |
|
---|
[7111666] | 56 | <para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput>rm /lib/lib{readline,history}.so
|
---|
| 59 | ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
|
---|
| 60 | ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
|
---|
[3125dfb] | 61 | </sect2>
|
---|
| 62 |
|
---|
| 63 |
|
---|
[c6cb3aa] | 64 | <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
|
---|
| 65 | <segmentedlist>
|
---|
| 66 | <segtitle>Installed libraries</segtitle>
|
---|
| 67 | <seglistitem><seg>Not checked</seg></seglistitem>
|
---|
| 68 | </segmentedlist>
|
---|
[3125dfb] | 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | </sect1>
|
---|