source: final-system/common/readline.xml@ 8abe4a82

Last change on this file since 8abe4a82 was 23ddcc3, checked in by Jim Gifford <clfs@…>, 19 years ago

r868@server (orig r866): jim | 2005-12-07 13:29:51 -0800

r1008@server: jim | 2005-12-07 13:18:06 -0800
Upgraded to Readline 5.0.5


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