source: chapter06/readline.xml@ b340d68c

Last change on this file since b340d68c was d33d8cc, checked in by Matthew Burgess <matthew@…>, 18 years ago

Merge package upgrades from trunk r7377-r7384

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

  • Property mode set to 100644
File size: 4.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>0.11 SBU</seg>
29 <seg>9.1 MB</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 <segmentedlist>
34 <segtitle>&dependencies;</segtitle>
35
36 <seglistitem>
37 <seg>Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make,
38 Ncurses, and Sed</seg>
39 </seglistitem>
40 </segmentedlist>
41
42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of Readline</title>
46
47 <para>Upstream developers have fixed several issues since the initial
48 release of Readline-&readline-version;. Apply those fixes:</para>
49
50<screen><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
51
52 <para>Prepare Readline for compilation:</para>
53
54<screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
55
56 <para>Compile the package:</para>
57
58<screen><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
59
60 <variablelist>
61 <title>The meaning of the make option:</title>
62
63 <varlistentry>
64 <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
65 <listitem>
66 <para>This option forces Readline to link against the
67 <filename class="libraryfile">libncurses</filename> (really,
68 <filename class="libraryfile">libncursesw</filename>) library.</para>
69 </listitem>
70 </varlistentry>
71
72 </variablelist>
73
74 <para>This package does not come with a test suite.</para>
75
76 <para>Install the package:</para>
77
78<screen><userinput>make install</userinput></screen>
79
80 <para>Give Readline's dynamic libraries more appropriate permissions:</para>
81
82<screen><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen>
83
84 <para>Now move the static libraries to a more appropriate location:</para>
85
86<screen><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
87
88 <para>Next, remove the <filename class="extension">.so</filename> files in
89 <filename class="directory">/lib</filename> and relink them into <filename
90 class="directory">/usr/lib</filename>.</para>
91
92<screen><userinput>rm -v /lib/lib{readline,history}.so
93ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
94ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
95
96 </sect2>
97
98 <sect2 id="contents-readline" role="content">
99 <title>Contents of Readline</title>
100
101 <segmentedlist>
102 <segtitle>Installed libraries</segtitle>
103
104 <seglistitem>
105 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
106 </seglistitem>
107 </segmentedlist>
108
109 <variablelist>
110 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
111 <?dbfo list-presentation="list"?>
112 <?dbhtml list-presentation="table"?>
113
114 <varlistentry id="libhistory">
115 <term><filename class="libraryfile">libhistory</filename></term>
116 <listitem>
117 <para>Provides a consistent user interface for recalling lines
118 of history</para>
119 <indexterm zone="ch-system-readline libhistory">
120 <primary sortas="c-libhistory">libhistory</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="libreadline">
126 <term><filename class="libraryfile">libreadline</filename></term>
127 <listitem>
128 <para>Aids in the consistency of user interface across discrete
129 programs that need to provide a command line interface</para>
130 <indexterm zone="ch-system-readline libreadline">
131 <primary sortas="c-libreadline">libreadline</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 </variablelist>
137
138 </sect2>
139
140</sect1>
Note: See TracBrowser for help on using the repository browser.