source: chapter08/readline.xml@ 460f575

arm
Last change on this file since 460f575 was 460f575, checked in by William Harrington <kb0iic@…>, 2 years ago

Initial LFS-ARM book.

  • Property mode set to 100644
File size: 5.0 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>
[fb386e0]34 <seg>&readline-fin-sbu;</seg>
35 <seg>&readline-fin-du;</seg>
[3f3931b0]36 </seglistitem>
37 </segmentedlist>
[3125dfb]38
[3f3931b0]39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Readline</title>
43
[2ed4bb3f]44 <para>Reinstalling Readline will cause the old libraries to be moved to
45 &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
46 it can trigger a linking bug in <command>ldconfig</command>. This can be
47 avoided by issuing the following two seds:</para>
48
[0445a3d]49<screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
[2ed4bb3f]50sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
[67e8a9b]51
[3f3931b0]52 <para>Prepare Readline for compilation:</para>
[3125dfb]53
[460f575]54 <screen><userinput remap="configure">./configure --prefix=/usr \
55 --disable-bracketed-paste-default \
[73b2841]56 --disable-static \
[a5dddcb]57 --with-curses \
[73b2841]58 --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
[3125dfb]59
[a5dddcb]60 <variablelist>
61 <title>The meaning of the configure option:</title>
62
63 <varlistentry>
[45cd4bf]64 <term><parameter>--with-curses</parameter></term>
[a5dddcb]65 <listitem>
66 <para>This option tells Readline that it can find the termcap
[45cd4bf]67 library functions in the curses library, rather than a separate
68 termcap library. It allows generating a correct
69 <filename>readline.pc</filename> file.</para>
[a5dddcb]70 </listitem>
71 </varlistentry>
72
[460f575]73 <varlistentry>
74 <term><parameter>--disable-bracketed-paste-default</parameter></term>
75 <listitem>
76 <para>Bracketed paste mode is enabled by default. Set this default
77 to off. Omit this configure option if bracketed paste is
78 desired.</para>
79 </listitem>
80 </varlistentry>
81
[a5dddcb]82 </variablelist>
83
[3f3931b0]84 <para>Compile the package:</para>
[3125dfb]85
[efcb393]86<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
[3125dfb]87
[3f3931b0]88 <variablelist>
89 <title>The meaning of the make option:</title>
[81fd230]90
[3f3931b0]91 <varlistentry>
[efcb393]92 <term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
[3f3931b0]93 <listitem>
94 <para>This option forces Readline to link against the
[1e472fb]95 <filename class="libraryfile">libncursesw</filename> library.</para>
[3f3931b0]96 </listitem>
97 </varlistentry>
[81fd230]98
[3f3931b0]99 </variablelist>
[0be3d41]100
[3f3931b0]101 <para>This package does not come with a test suite.</para>
102
103 <para>Install the package:</para>
[3125dfb]104
[efcb393]105<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
[3125dfb]106
[52e836a]107 <para>If desired, install the documentation:</para>
108
[a57d556]109<screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
[52e836a]110
[3f3931b0]111 </sect2>
112
113 <sect2 id="contents-readline" role="content">
114 <title>Contents of Readline</title>
115
116 <segmentedlist>
117 <segtitle>Installed libraries</segtitle>
[fe05b08]118 <segtitle>Installed directories</segtitle>
[3f3931b0]119
120 <seglistitem>
[040ecb6]121 <seg>libhistory.so and libreadline.so</seg>
[78cc3be]122 <seg>/usr/include/readline and
[fe05b08]123 /usr/share/doc/readline-&readline-version;</seg>
[3f3931b0]124 </seglistitem>
125 </segmentedlist>
126
127 <variablelist>
128 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
129 <?dbfo list-presentation="list"?>
130 <?dbhtml list-presentation="table"?>
131
132 <varlistentry id="libhistory">
133 <term><filename class="libraryfile">libhistory</filename></term>
134 <listitem>
135 <para>Provides a consistent user interface for recalling lines
136 of history</para>
137 <indexterm zone="ch-system-readline libhistory">
138 <primary sortas="c-libhistory">libhistory</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="libreadline">
144 <term><filename class="libraryfile">libreadline</filename></term>
145 <listitem>
[0d84af1]146 <para>Provides a set of commands for manipulating text entered in an
[8d35535]147 interactive session of a program</para>
[3f3931b0]148 <indexterm zone="ch-system-readline libreadline">
149 <primary sortas="c-libreadline">libreadline</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 </variablelist>
155
156 </sect2>
[3125dfb]157
158</sect1>
Note: See TracBrowser for help on using the repository browser.