source: chapter06/readline.xml@ 21bedf7

Last change on this file since 21bedf7 was acdb4a6, checked in by Gerard Beekmans <gerard@…>, 19 years ago

Synced missing parts from zlib and readline

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

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