source: chapter06/readline.xml@ 46d06d9

7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 46d06d9 was 61ce0b1, checked in by DJ Lucas <dj@…>, 10 years ago

Synchronized with LFS-SVN-20140611.

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

  • Property mode set to 100644
File size: 4.7 KB
RevLine 
[3125dfb]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3125dfb]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[3f3931b0]7
[81fd230]8<sect1 id="ch-system-readline" role="wrap">
[3f3931b0]9 <?dbhtml filename="readline.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>readline</productname>
13 <productnumber>&readline-version;</productnumber>
14 <address>&readline-url;</address>
15 </sect1info>
16
[3f3931b0]17 <title>Readline-&readline-version;</title>
18
19 <indexterm zone="ch-system-readline">
20 <primary sortas="a-Readline">Readline</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
[3125dfb]25
[3f3931b0]26 <para>The Readline package is a set of libraries that offers command-line
27 editing and history capabilities.</para>
[3125dfb]28
[3f3931b0]29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
[3125dfb]32
[3f3931b0]33 <seglistitem>
[e4a5635]34 <seg>&readline-ch6-sbu;</seg>
35 <seg>&readline-ch6-du;</seg>
[3f3931b0]36 </seglistitem>
37 </segmentedlist>
[3125dfb]38
[3f3931b0]39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Readline</title>
43
[61ce0b1]44 <para>First install some patches to fix various bugs that have been
45 addressed upstream:</para>
46
47<screen><userinput remap="pre">patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
48
[2ed4bb3f]49 <para>Reinstalling Readline will cause the old libraries to be moved to
50 &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
51 it can trigger a linking bug in <command>ldconfig</command>. This can be
52 avoided by issuing the following two seds:</para>
53
[0445a3d]54<screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
[2ed4bb3f]55sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
56
[3f3931b0]57 <para>Prepare Readline for compilation:</para>
[3125dfb]58
[9256309]59<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/readline-&readline-version; </userinput></screen>
[3125dfb]60
[3f3931b0]61 <para>Compile the package:</para>
[3125dfb]62
[0445a3d]63<screen><userinput remap="make">make SHLIB_LIBS=-lncurses</userinput></screen>
[3125dfb]64
[3f3931b0]65 <variablelist>
66 <title>The meaning of the make option:</title>
[81fd230]67
[3f3931b0]68 <varlistentry>
69 <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
70 <listitem>
71 <para>This option forces Readline to link against the
72 <filename class="libraryfile">libncurses</filename> (really,
73 <filename class="libraryfile">libncursesw</filename>) library.</para>
74 </listitem>
75 </varlistentry>
[81fd230]76
[3f3931b0]77 </variablelist>
[0be3d41]78
[3f3931b0]79 <para>This package does not come with a test suite.</para>
80
81 <para>Install the package:</para>
[3125dfb]82
[61ce0b1]83<screen><userinput remap="install">make SHLIB_LIBS=-lncurses install</userinput></screen>
[3125dfb]84
[112db9d]85 <para>Now move the dynamic libraries to a more appropriate location
86 and fix up some symbolic links:</para>
[3125dfb]87
[112db9d]88<screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
89ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
90ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
[81fd230]91
[52e836a]92 <para>If desired, install the documentation:</para>
93
[9256309]94<screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
[52e836a]95
[3f3931b0]96 </sect2>
97
98 <sect2 id="contents-readline" role="content">
99 <title>Contents of Readline</title>
100
101 <segmentedlist>
102 <segtitle>Installed libraries</segtitle>
[fe05b08]103 <segtitle>Installed directories</segtitle>
[3f3931b0]104
105 <seglistitem>
[0090db5]106 <seg>libhistory.{a,so}, and libreadline.{a,so}</seg>
[fe05b08]107 <seg>/usr/include/readline, /usr/share/readline,
108 /usr/share/doc/readline-&readline-version;</seg>
[3f3931b0]109 </seglistitem>
110 </segmentedlist>
111
112 <variablelist>
113 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
114 <?dbfo list-presentation="list"?>
115 <?dbhtml list-presentation="table"?>
116
117 <varlistentry id="libhistory">
118 <term><filename class="libraryfile">libhistory</filename></term>
119 <listitem>
120 <para>Provides a consistent user interface for recalling lines
121 of history</para>
122 <indexterm zone="ch-system-readline libhistory">
123 <primary sortas="c-libhistory">libhistory</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="libreadline">
129 <term><filename class="libraryfile">libreadline</filename></term>
130 <listitem>
131 <para>Aids in the consistency of user interface across discrete
132 programs that need to provide a command line interface</para>
133 <indexterm zone="ch-system-readline libreadline">
134 <primary sortas="c-libreadline">libreadline</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 </variablelist>
140
141 </sect2>
[3125dfb]142
143</sect1>
Note: See TracBrowser for help on using the repository browser.