source: chapter06/readline.xml@ 777c890

multilib-10.1
Last change on this file since 777c890 was a07a34d, checked in by Thomas Trepl <thomas@…>, 4 years ago

MultiLib: Merge changes from trunk

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

  • Property mode set to 100644
File size: 6.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 <sect1info condition="script">
12 <productname>readline</productname>
13 <productnumber>&readline-version;</productnumber>
14 <address>&readline-url;</address>
15 </sect1info>
16
17 <title>Readline-&readline-version;</title>
18
19 <indexterm zone="ch-system-readline">
20 <primary sortas="a-Readline">Readline</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Readline package is a set of libraries that offers command-line
27 editing and history capabilities.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&readline-ch6-sbu;</seg>
35 <seg>&readline-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Readline</title>
43
44 <para>Reinstalling Readline will cause the old libraries to be moved to
45 &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
46 it can trigger a linking bug in <command>ldconfig</command>. This can be
47 avoided by issuing the following two seds:</para>
48
49<screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
50sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
51
52 <para>Prepare Readline for compilation:</para>
53
54<screen><userinput remap="configure">./configure --prefix=/usr \
55 --disable-static \
56 --with-curses \
57 --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
58
59 <variablelist>
60 <title>The meaning of the configure option:</title>
61
62 <varlistentry>
63 <term><parameter>--with-curses"</parameter></term>
64 <listitem>
65 <para>This option tells Readline that it can find the termcap
66 library functions in the curses library, rather than a separate
67 termcap library. It allows generating a correct
68 <filename>readline.pc</filename> file.</para>
69 </listitem>
70 </varlistentry>
71
72 </variablelist>
73
74 <para>Compile the package:</para>
75
76<screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib -lncursesw"</userinput></screen>
77
78 <variablelist>
79 <title>The meaning of the make option:</title>
80
81 <varlistentry>
82 <term><parameter>SHLIB_LIBS="-L/tools/lib -lncursesw"</parameter></term>
83 <listitem>
84 <para>This option forces Readline to link against the
85 <filename class="libraryfile">libncursesw</filename> library.</para>
86 </listitem>
87 </varlistentry>
88
89 </variablelist>
90
91 <para>This package does not come with a test suite.</para>
92
93 <para>Install the package:</para>
94
95<screen><userinput remap="install">make SHLIB_LIBS="-L/tools/lib -lncursesw" install</userinput></screen>
96
97 <para>Now move the dynamic libraries to a more appropriate location
98 and fix up some permissions and symbolic links:</para>
99
100<screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
101chmod -v u+w /lib/lib{readline,history}.so.*
102ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
103ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
104
105 <para>If desired, install the documentation:</para>
106
107<screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
108
109 </sect2>
110
111 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
112
113 <sect2 arch="ml_32,ml_all" role="installation">
114 <title>Installation of Readline - 32-bit</title>
115
116 <para>Clean previous build:</para>
117
118<screen><userinput remap="pre">make distclean</userinput></screen>
119
120 <para>Prepare Readline for compilation:</para>
121
122<screen><userinput remap="configure">CC="gcc -m32 -march=i686" ./configure \
123 --prefix=/usr \
124 --libdir=/usr/lib32 \
125 --disable-static \
126 --host=i686-pc-linux-gnu</userinput></screen>
127
128 <para>Compile the package:</para>
129
130<screen><userinput remap="make">make</userinput></screen>
131
132 <para>Install the package:</para>
133
134<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
135cp -Rv DESTDIR/usr/lib32/* /usr/lib32
136rm -rf DESTDIR</userinput></screen>
137
138 </sect2>
139
140 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
141
142 <sect2 arch="ml_x32,ml_all" role="installation">
143 <title>Installation of Readline - x32-bit</title>
144
145 <para>Clean previous build:</para>
146
147<screen><userinput remap="pre">make distclean</userinput></screen>
148
149 <para>Prepare Readline for compilation:</para>
150
151<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
152 --prefix=/usr \
153 --libdir=/usr/libx32 \
154 --disable-static \
155 --host=x86_64-pc-linux-gnux32</userinput></screen>
156
157 <para>Compile the package:</para>
158
159<screen><userinput remap="make">make</userinput></screen>
160
161 <para>Install the package:</para>
162
163<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
164cp -Rv DESTDIR/usr/libx32/* /usr/libx32
165rm -rf DESTDIR</userinput></screen>
166
167 </sect2>
168
169 <sect2 id="contents-readline" role="content">
170 <title>Contents of Readline</title>
171
172 <segmentedlist>
173 <segtitle>Installed libraries</segtitle>
174 <segtitle>Installed directories</segtitle>
175
176 <seglistitem>
177 <seg>libhistory.so and libreadline.so</seg>
178 <seg>/usr/include/readline and
179 /usr/share/doc/readline-&readline-version;</seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="libhistory">
189 <term><filename class="libraryfile">libhistory</filename></term>
190 <listitem>
191 <para>Provides a consistent user interface for recalling lines
192 of history</para>
193 <indexterm zone="ch-system-readline libhistory">
194 <primary sortas="c-libhistory">libhistory</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="libreadline">
200 <term><filename class="libraryfile">libreadline</filename></term>
201 <listitem>
202 <para>Provides a set of commands for manipulating text entered in an
203 interactive session of a program.</para>
204 <indexterm zone="ch-system-readline libreadline">
205 <primary sortas="c-libreadline">libreadline</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 </variablelist>
211
212 </sect2>
213
214</sect1>
Note: See TracBrowser for help on using the repository browser.