source: chapter06/readline.xml@ 72d7e28

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 72d7e28 was 72d7e28, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Moved all dependency information to a new page, Appendix C.
Appendix C also contains information concerning the build order.
While there might need to be a few tweaks yet, this information is complete
enough at this point to close out the long-standing ticket #684.
Many thanks to Chris Staub, Dan Nicholson and Manuel Canales Esparcia for
helping get this finished.

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

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