source: chapter06/readline.xml@ 5094150b

6.0
Last change on this file since 5094150b was 072d8cf, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags & typos corrections.

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

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