source: BOOK/final-system/common/readline.xml@ 929aaed

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 929aaed was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 4.4 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 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-readline" role="wrap">
11 <?dbhtml filename="readline.html"?>
12
13 <title>Readline-&readline-version;</title>
14
15 <indexterm zone="ch-system-readline">
16 <primary sortas="a-Readline">Readline</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <para>The Readline package is a set of libraries that offers command-line
23 editing and history capabilities.</para>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>Not checked yet</seg>
31 <seg>Not checked yet</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 <segmentedlist>
36 <segtitle>&dependencies;</segtitle>
37
38 <seglistitem>
39 <seg>Binutils, Coreutils, Diffutils, Gawk,
40 GCC, Glibc, Grep, Make, Ncurses, and Sed</seg>
41 </seglistitem>
42 </segmentedlist>
43
44 </sect2>
45
46 <sect2 role="installation">
47 <title>Installation of Readline</title>
48
49 <para os="a">The following patch includes a fix for a problem where Readline
50 sometimes only shows 33 characters on a line and then wraps to the
51 next line. It also includes other fixes recommended by the Readline
52 author.</para>
53
54<screen os="b"><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
55
56 <para os="c">Prepare Readline for compilation:</para>
57
58<screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
59
60 <para os="d">Compile the package:</para>
61
62<screen os="e"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
63
64 <variablelist os="f">
65 <title>The meaning of the make option:</title>
66
67 <varlistentry>
68 <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
69 <listitem>
70 <para>This option forces Readline to link against the
71 <filename class="libraryfile">libncurses</filename> library.</para>
72 </listitem>
73 </varlistentry>
74 </variablelist>
75
76 <para os="g">Install the package:</para>
77
78<screen os="h"><userinput>make install</userinput></screen>
79
80 <para os="i">Give Readline's dynamic libraries to a more appropriate
81 permissions:</para>
82
83<screen os="j"><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
84
85 <para os="k">Now move the static libraries to a more appropriate location:</para>
86
87<screen os="l"><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
88
89 <para os="m">Next, remove the <filename class="extension">.so</filename>
90 files in <filename class="directory">/lib</filename> and relink them into
91 <filename class="directory">/usr/lib</filename>.</para>
92
93<screen os="n"><userinput>rm /lib/lib{readline,history}.so
94ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
95ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
96
97 </sect2>
98
99 <sect2 id="contents-readline" role="content">
100 <title>Contents of Readline</title>
101
102 <segmentedlist>
103 <segtitle>Installed libraries</segtitle>
104
105 <seglistitem>
106 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
107 </seglistitem>
108 </segmentedlist>
109
110 <variablelist>
111 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
112 <?dbfo list-presentation="list"?>
113 <?dbhtml list-presentation="table"?>
114
115 <varlistentry id="libhistory">
116 <term><filename class="libraryfile">libhistory</filename></term>
117 <listitem>
118 <para>Provides a consistent user interface
119 for recalling lines of history</para>
120 <indexterm zone="ch-system-readline libhistory">
121 <primary sortas="c-libhistory">libhistory</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="libreadline">
127 <term><filename class="libraryfile">libreadline</filename></term>
128 <listitem>
129 <para>Aids in the consistency of user interface
130 across discrete programs that need to provide a command line
131 interface</para>
132 <indexterm zone="ch-system-readline libreadline">
133 <primary sortas="c-libreadline">libreadline</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 </variablelist>
139
140 </sect2>
141
142</sect1>
Note: See TracBrowser for help on using the repository browser.