source: chapter06/readline.xml@ 8d5ffbfd

Last change on this file since 8d5ffbfd was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-readline" role="wrap">
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<sect2 role="package"><title/>
13<para>The Readline package contains the Readline command-line library.</para>
14
15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>0.11 SBU</seg><seg>3.8 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>&dependencies;</segtitle>
23<seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
24GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
25</segmentedlist>
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Readline</title>
30
31<para>The following patch fixes various issues including a problem where Readline
32sometimes will only show 33 characters on a line and then wrap to the next line.</para>
33
34<screen><userinput>patch -Np1 -i ../readline-&readline-version;-fixes-1.patch</userinput></screen>
35
36<para>Prepare Readline for compilation:</para>
37
38<screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
39
40<para>Compile the package:</para>
41
42<screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
43
44<para>The meaning of the make option:</para>
45
46<variablelist>
47<varlistentry>
48<term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
49<listitem><para>This option forces Readline to link against the
50<filename class="libraryfile">libncurses</filename> library.</para></listitem>
51</varlistentry>
52</variablelist>
53
54<para>Install the package:</para>
55
56<screen><userinput>make install</userinput></screen>
57
58<para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
59
60<screen><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
61
62<para>Now we move the static libraries to a more appropriate location:</para>
63
64<screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
65
66<para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
67
68<screen><userinput>rm /lib/lib{readline,history}.so
69ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
70ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
71
72</sect2>
73
74<sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
75<segmentedlist>
76<segtitle>Installed libraries</segtitle>
77<seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
78</segmentedlist>
79
80<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
81<?dbfo list-presentation="list"?>
82<?dbhtml list-presentation="table"?>
83
84<varlistentry id="libhistory">
85<term><filename class="libraryfile">libhistory</filename></term>
86<listitem>
87<para>Provides a consistent user interface
88for recalling lines of history</para>
89<indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
90</listitem>
91</varlistentry>
92
93<varlistentry id="libreadline">
94<term><filename class="libraryfile">libreadline</filename></term>
95<listitem>
96<para>Aids in the consistency of user interface
97across discrete programs that need to provide a command line
98interface</para>
99<indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
100</listitem>
101</varlistentry>
102
103</variablelist>
104
105</sect2>
106
107</sect1>
108
Note: See TracBrowser for help on using the repository browser.