source: chapter06/readline.xml@ bc2136e

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 bc2136e was bc2136e, checked in by Archaic <archaic@…>, 19 years ago

Several minor grammatical fixes. Thanks to Randy and Steve.

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

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 <!ENTITY % patches-entities SYSTEM "../patches.ent">
5 %general-entities;
6 %patches-entities;
7]>
8<sect1 id="ch-system-readline" role="wrap">
9<title>Readline-&readline-version;</title>
10<?dbhtml filename="readline.html"?>
11
12<indexterm zone="ch-system-readline"><primary sortas="a-Readline">Readline</primary></indexterm>
13
14<sect2 role="package"><title/>
15<para>The Readline package contains the Readline command-line library.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.11 SBU</seg><seg>9.1 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>&dependencies;</segtitle>
25<seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
26GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
27</segmentedlist>
28</sect2>
29
30<sect2 role="installation">
31<title>Installation of Readline</title>
32
33<para>The following patch includes a fix for the problem where
34Readline sometimes only shows 33 characters on a line and then wraps
35to the next line. It also includes other fixes recommended by the
36Readline author.</para>
37
38<screen><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
39
40<para>Prepare Readline for compilation:</para>
41
42<screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
43
44<para>Compile the package:</para>
45
46<screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
47
48<para>The meaning of the make option:</para>
49
50<variablelist>
51<varlistentry>
52<term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
53<listitem><para>This option forces Readline to link against the
54<filename class="libraryfile">libncurses</filename> library.</para></listitem>
55</varlistentry>
56</variablelist>
57
58<para>Install the package:</para>
59
60<screen><userinput>make install</userinput></screen>
61
62<para>Give Readline's dynamic libraries more appropriate permissions:</para>
63
64<screen><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
65
66<para>Now we move the static libraries to a more appropriate
67location:</para>
68
69<screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
70
71<para>Next we will remove the <filename class="extension">.so</filename> files in
72<filename class="directory">/lib</filename> and relink them into
73<filename class="directory">/usr/lib</filename>.</para>
74
75<screen><userinput>rm /lib/lib{readline,history}.so
76ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
77ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
78
79</sect2>
80
81
82<sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
83<segmentedlist>
84<segtitle>Installed libraries</segtitle>
85<seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
86</segmentedlist>
87
88<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
89<?dbfo list-presentation="list"?>
90<?dbhtml list-presentation="table"?>
91
92<varlistentry id="libhistory">
93<term><filename class="libraryfile">libhistory</filename></term>
94<listitem>
95<para>Provides a consistent user interface
96for recalling lines of history</para>
97<indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
98</listitem>
99</varlistentry>
100
101<varlistentry id="libreadline">
102<term><filename class="libraryfile">libreadline</filename></term>
103<listitem>
104<para>Aids in the consistency of user interface
105across discrete programs that need to provide a command line
106interface</para>
107<indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
108</listitem>
109</varlistentry>
110
111</variablelist>
112
113</sect2>
114
115</sect1>
116
Note: See TracBrowser for help on using the repository browser.