source: BOOK/final-system/common/readline.xml@ 1ded6e3

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1ded6e3 was 110e1fa, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Simplify and Fix the linking of Readline to NCurses.

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[001becd]28 <para os="p1">The following patch contains updates from the maintainer. The
29 maintainer of Readline only releases these patches to fix serious issues:</para>
[3f8be484]30
[04494b7]31<screen os="p2"><userinput>patch -Np1 -i ../&readline-branch_update-patch;</userinput></screen>
[3f8be484]32
[001becd]33 <para os="a">Prepare Readline for compilation:</para>
[3f8be484]34
[001becd]35<screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
[3f8be484]36
[001becd]37 <para os="c">Compile the package:</para>
38
[110e1fa]39<screen os="d"><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
[3f8be484]40
[3d00c1ed]41 <para os="e">This package does not come with a test suite.</para>
[3f8be484]42
[3d00c1ed]43 <para os="f">Install the package:</para>
[3f8be484]44
[3d00c1ed]45<screen os="g"><userinput>make install</userinput></screen>
[5da8aa0]46
[4f743c5]47 <para os="h">Install the documentation:</para>
[3f8be484]48
[4f743c5]49<screen os="i"><userinput>make install-doc</userinput></screen>
[3f8be484]50
[4f743c5]51 <para os="j">Now move the static libraries to a more appropriate location:</para>
52
53<screen os="k"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
54
55 <para os="l">Next, remove the <filename class="extension">.so</filename>
[3f8be484]56 files in <filename class="directory">/lib</filename> and relink them into
57 <filename class="directory">/usr/lib</filename>.</para>
58
[4f743c5]59<screen os="m"><userinput>rm -v /lib/lib{readline,history}.so
[cf1daf0]60ln -svf ../../lib/libreadline.so.&readline-version2; /usr/lib/libreadline.so
61ln -svf ../../lib/libhistory.so.&readline-version2; /usr/lib/libhistory.so</userinput></screen>
[3f8be484]62
63 </sect2>
64
65 <sect2 id="contents-readline" role="content">
66 <title>Contents of Readline</title>
67
68 <segmentedlist>
69 <segtitle>Installed libraries</segtitle>
[61ad0b7f]70 <segtitle>Installed directories</segtitle>
[3f8be484]71
72 <seglistitem>
73 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
[61ad0b7f]74 <seg>/usr/include/readline, /usr/share/readline</seg>
[3f8be484]75 </seglistitem>
76 </segmentedlist>
77
78 <variablelist>
79 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
80 <?dbfo list-presentation="list"?>
81 <?dbhtml list-presentation="table"?>
82
83 <varlistentry id="libhistory">
84 <term><filename class="libraryfile">libhistory</filename></term>
85 <listitem>
86 <para>Provides a consistent user interface
87 for recalling lines of history</para>
88 <indexterm zone="ch-system-readline libhistory">
89 <primary sortas="c-libhistory">libhistory</primary>
90 </indexterm>
91 </listitem>
92 </varlistentry>
93
94 <varlistentry id="libreadline">
95 <term><filename class="libraryfile">libreadline</filename></term>
96 <listitem>
97 <para>Aids in the consistency of user interface
98 across discrete programs that need to provide a command line
99 interface</para>
100 <indexterm zone="ch-system-readline libreadline">
101 <primary sortas="c-libreadline">libreadline</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 </variablelist>
107
108 </sect2>
109
110</sect1>
Note: See TracBrowser for help on using the repository browser.