source: clfs-sysroot/BOOK/final-system/common/readline.xml@ b47f947

Last change on this file since b47f947 was b8c1aeb, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Updated readline to 5.2.

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[02095ae]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 %general-entities;
6]>
7
8<sect1 id="ch-system-readline" role="wrap">
9 <?dbhtml filename="readline.html"?>
10
11 <title>Readline-&readline-version;</title>
12
13 <indexterm zone="ch-system-readline">
14 <primary sortas="a-Readline">Readline</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Readline package is a set of libraries that offers command-line
21 editing and history capabilities.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Readline</title>
27
28 <para os="a">Prepare Readline for compilation:</para>
29
[cee2ca2]30<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
31 --prefix=/usr --libdir=/lib</userinput></screen>
[02095ae]32
33 <para os="c">Compile the package:</para>
34
35<screen os="d"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
36
37 <variablelist os="e">
38 <title>The meaning of the make option:</title>
39
40 <varlistentry>
41 <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
42 <listitem>
43 <para>This option forces Readline to link against the
44 <filename class="libraryfile">libncurses</filename> library.</para>
45 </listitem>
46 </varlistentry>
47 </variablelist>
48
49 <para os="f">Install the package:</para>
50
[586feb7]51<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
[02095ae]52
53 <para os="h">Give Readline's dynamic libraries more appropriate
54 permissions:</para>
55
[586feb7]56<screen os="i"><userinput>chmod -v 755 ${CLFS}/lib/lib{readline,history}.so*</userinput></screen>
[02095ae]57
58 <para os="j">Now move the static libraries to a more appropriate location:</para>
59
[586feb7]60<screen os="k"><userinput>mv -v ${CLFS}/lib/lib{readline,history}.a ${CLFS}/usr/lib</userinput></screen>
[02095ae]61
62 <para os="l">Next, remove the <filename class="extension">.so</filename>
63 files in <filename class="directory">/lib</filename> and relink them into
64 <filename class="directory">/usr/lib</filename>.</para>
65
[586feb7]66<screen os="m"><userinput>rm -v ${CLFS}/lib/lib{readline,history}.so
67ln -svf ../../lib/libreadline.so.5 ${CLFS}/usr/lib/libreadline.so
68ln -svf ../../lib/libhistory.so.5 ${CLFS}/usr/lib/libhistory.so</userinput></screen>
[02095ae]69
70 </sect2>
71
72 <sect2 id="contents-readline" role="content">
73 <title>Contents of Readline</title>
74
75 <segmentedlist>
76 <segtitle>Installed libraries</segtitle>
77
78 <seglistitem>
79 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
80 </seglistitem>
81 </segmentedlist>
82
83 <variablelist>
84 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
85 <?dbfo list-presentation="list"?>
86 <?dbhtml list-presentation="table"?>
87
88 <varlistentry id="libhistory">
89 <term><filename class="libraryfile">libhistory</filename></term>
90 <listitem>
91 <para>Provides a consistent user interface
92 for recalling lines of history</para>
93 <indexterm zone="ch-system-readline libhistory">
94 <primary sortas="c-libhistory">libhistory</primary>
95 </indexterm>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry id="libreadline">
100 <term><filename class="libraryfile">libreadline</filename></term>
101 <listitem>
102 <para>Aids in the consistency of user interface
103 across discrete programs that need to provide a command line
104 interface</para>
105 <indexterm zone="ch-system-readline libreadline">
106 <primary sortas="c-libreadline">libreadline</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 </variablelist>
112
113 </sect2>
114
115</sect1>
Note: See TracBrowser for help on using the repository browser.