source: BOOK/final-system/common/readline.xml@ 4ba982a3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 4ba982a3 was 3373dd11, checked in by Jim Gifford <clfs@…>, 19 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

  • Property mode set to 100644
File size: 4.2 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>&dependencies;</segtitle>
27
28 <seglistitem>
29 <seg>Binutils, Coreutils, Diffutils, Gawk,
30 GCC, Glibc, Grep, Make, Ncurses, and Sed</seg>
31 </seglistitem>
32 </segmentedlist>
33
34 </sect2>
35
36 <sect2 role="installation">
37 <title>Installation of Readline</title>
38
39 <para os="a">The following patch includes a fix for a problem where Readline
40 sometimes only shows 33 characters on a line and then wraps to the
41 next line. It also includes other fixes recommended by the Readline
42 author.</para>
43
44<screen os="b"><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
45
46 <para os="c">Prepare Readline for compilation:</para>
47
48<screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
49
50 <para os="d">Compile the package:</para>
51
52<screen os="e"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
53
54 <variablelist os="f">
55 <title>The meaning of the make option:</title>
56
57 <varlistentry>
58 <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
59 <listitem>
60 <para>This option forces Readline to link against the
61 <filename class="libraryfile">libncurses</filename> library.</para>
62 </listitem>
63 </varlistentry>
64 </variablelist>
65
66 <para os="g">Install the package:</para>
67
68<screen os="h"><userinput>make install</userinput></screen>
69
70 <para os="i">Give Readline's dynamic libraries to a more appropriate
71 permissions:</para>
72
73<screen os="j"><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
74
75 <para os="k">Now move the static libraries to a more appropriate location:</para>
76
77<screen os="l"><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
78
79 <para os="m">Next, remove the <filename class="extension">.so</filename>
80 files in <filename class="directory">/lib</filename> and relink them into
81 <filename class="directory">/usr/lib</filename>.</para>
82
83<screen os="n"><userinput>rm /lib/lib{readline,history}.so
84ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
85ln -sf ../../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
109 for recalling lines 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
120 across discrete programs that need to provide a command line
121 interface</para>
122 <indexterm zone="ch-system-readline libreadline">
123 <primary sortas="c-libreadline">libreadline</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 </variablelist>
129
130 </sect2>
131
132</sect1>
Note: See TracBrowser for help on using the repository browser.