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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 4a0b781 was b3caa33, checked in by Jim Gifford <clfs@…>, 18 years ago

Updated to Readline 5.2

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[3f8be484]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="c">Prepare Readline for compilation:</para>
29
[e0e40d3]30<screen os="d"><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
[3f8be484]31
[e0e40d3]32 <para os="e">Compile the package:</para>
[3f8be484]33
[e0e40d3]34<screen os="f"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
[3f8be484]35
[e0e40d3]36 <variablelist os="g">
[3f8be484]37 <title>The meaning of the make option:</title>
38
39 <varlistentry>
40 <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
41 <listitem>
42 <para>This option forces Readline to link against the
43 <filename class="libraryfile">libncurses</filename> library.</para>
44 </listitem>
45 </varlistentry>
46 </variablelist>
47
[5da8aa0]48 <para os="h">This package does not come with a test suite.</para>
[3f8be484]49
[5da8aa0]50 <para os="i">Install the package:</para>
[3f8be484]51
[5da8aa0]52<screen os="j"><userinput>make install</userinput></screen>
53
54 <para os="k">Give Readline's dynamic libraries more appropriate
[3f8be484]55 permissions:</para>
56
[94e6142]57<screen os="l"><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen>
[3f8be484]58
[5da8aa0]59 <para os="m">Now move the static libraries to a more appropriate location:</para>
[3f8be484]60
[94e6142]61<screen os="n"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
[3f8be484]62
[5da8aa0]63 <para os="o">Next, remove the <filename class="extension">.so</filename>
[3f8be484]64 files in <filename class="directory">/lib</filename> and relink them into
65 <filename class="directory">/usr/lib</filename>.</para>
66
[94e6142]67<screen os="p"><userinput>rm -v /lib/lib{readline,history}.so
68ln -svf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
69ln -svf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
[3f8be484]70
71 </sect2>
72
73 <sect2 id="contents-readline" role="content">
74 <title>Contents of Readline</title>
75
76 <segmentedlist>
77 <segtitle>Installed libraries</segtitle>
78
79 <seglistitem>
80 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
81 </seglistitem>
82 </segmentedlist>
83
84 <variablelist>
85 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
86 <?dbfo list-presentation="list"?>
87 <?dbhtml list-presentation="table"?>
88
89 <varlistentry id="libhistory">
90 <term><filename class="libraryfile">libhistory</filename></term>
91 <listitem>
92 <para>Provides a consistent user interface
93 for recalling lines of history</para>
94 <indexterm zone="ch-system-readline libhistory">
95 <primary sortas="c-libhistory">libhistory</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry id="libreadline">
101 <term><filename class="libraryfile">libreadline</filename></term>
102 <listitem>
103 <para>Aids in the consistency of user interface
104 across discrete programs that need to provide a command line
105 interface</para>
106 <indexterm zone="ch-system-readline libreadline">
107 <primary sortas="c-libreadline">libreadline</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 </variablelist>
113
114 </sect2>
115
116</sect1>
Note: See TracBrowser for help on using the repository browser.