source: chapter06/readline.xml@ 7f67569

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 7f67569 was 7f67569, checked in by Matthew Burgess <matthew@…>, 18 years ago

Upgrade to Readline-5.2

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7847 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>&readline-ch6-sbu;</seg>
29 <seg>&readline-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Readline</title>
37
38 <para>Reinstalling Readline will cause the old libraries to be moved to
39 &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
40 it can trigger a linking bug in <command>ldconfig</command>. This can be
41 avoided by issuing the following two seds:</para>
42
43<screen><userinput>sed -i '/MV.*old/d' Makefile.in
44sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
45
46 <para>Prepare Readline for compilation:</para>
47
48<screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
53
54 <variablelist>
55 <title>The meaning of the make option:</title>
56
57 <varlistentry>
58 <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
59 <listitem>
60 <para>This option forces Readline to link against the
61 <filename class="libraryfile">libncurses</filename> (really,
62 <filename class="libraryfile">libncursesw</filename>) library.</para>
63 </listitem>
64 </varlistentry>
65
66 </variablelist>
67
68 <para>This package does not come with a test suite.</para>
69
70 <para>Install the package:</para>
71
72<screen><userinput>make install</userinput></screen>
73
74 <para>Give Readline's dynamic libraries more appropriate permissions:</para>
75
76<screen><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen>
77
78 <para>Now move the static libraries to a more appropriate location:</para>
79
80<screen><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
81
82 <para>Next, remove the <filename class="extension">.so</filename> files in
83 <filename class="directory">/lib</filename> and relink them into <filename
84 class="directory">/usr/lib</filename>:</para>
85
86<screen><userinput>rm -v /lib/lib{readline,history}.so
87ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
88ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
89
90 </sect2>
91
92 <sect2 id="contents-readline" role="content">
93 <title>Contents of Readline</title>
94
95 <segmentedlist>
96 <segtitle>Installed libraries</segtitle>
97
98 <seglistitem>
99 <seg>libhistory.{a,so}, and libreadline.{a,so}</seg>
100 </seglistitem>
101 </segmentedlist>
102
103 <variablelist>
104 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
105 <?dbfo list-presentation="list"?>
106 <?dbhtml list-presentation="table"?>
107
108 <varlistentry id="libhistory">
109 <term><filename class="libraryfile">libhistory</filename></term>
110 <listitem>
111 <para>Provides a consistent user interface for recalling lines
112 of history</para>
113 <indexterm zone="ch-system-readline libhistory">
114 <primary sortas="c-libhistory">libhistory</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="libreadline">
120 <term><filename class="libraryfile">libreadline</filename></term>
121 <listitem>
122 <para>Aids in the consistency of user interface across discrete
123 programs that need to provide a command line interface</para>
124 <indexterm zone="ch-system-readline libreadline">
125 <primary sortas="c-libreadline">libreadline</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 </variablelist>
131
132 </sect2>
133
134</sect1>
Note: See TracBrowser for help on using the repository browser.