source: chapter06/readline.xml@ 98d9003

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 98d9003 was 1e472fb, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Move realline to be before bc in Cahpater 6.
Update to linux-4.10.6.
Update to pkg-config-0.29.2.
Update to tzdata-2017b.
Add option -Dusethreads to perl in Chapter 6.

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

  • Property mode set to 100644
File size: 4.6 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
[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
[73b2841]54<screen><userinput remap="configure">./configure --prefix=/usr \
55 --disable-static \
56 --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
[3125dfb]57
[3f3931b0]58 <para>Compile the package:</para>
[3125dfb]59
[1e472fb]60<screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib -lncursesw"</userinput></screen>
[3125dfb]61
[3f3931b0]62 <variablelist>
63 <title>The meaning of the make option:</title>
[81fd230]64
[3f3931b0]65 <varlistentry>
[1e472fb]66 <term><parameter>SHLIB_LIBS="-L/tools/lib -lncursesw"</parameter></term>
[3f3931b0]67 <listitem>
68 <para>This option forces Readline to link against the
[1e472fb]69 <filename class="libraryfile">libncursesw</filename> library.</para>
[3f3931b0]70 </listitem>
71 </varlistentry>
[81fd230]72
[3f3931b0]73 </variablelist>
[0be3d41]74
[3f3931b0]75 <para>This package does not come with a test suite.</para>
76
77 <para>Install the package:</para>
[3125dfb]78
[1e472fb]79<screen><userinput remap="install">make SHLIB_LIBS="-L/tools/lib -lncurses" install</userinput></screen>
[3125dfb]80
[a326b1d7]81 <para>Now move the dynamic libraries to a more appropriate location
82 and fix up some symbolic links:</para>
[3125dfb]83
[a326b1d7]84<screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
85ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
86ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
[81fd230]87
[52e836a]88 <para>If desired, install the documentation:</para>
89
[a57d556]90<screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
[52e836a]91
[3f3931b0]92 </sect2>
93
94 <sect2 id="contents-readline" role="content">
95 <title>Contents of Readline</title>
96
97 <segmentedlist>
98 <segtitle>Installed libraries</segtitle>
[fe05b08]99 <segtitle>Installed directories</segtitle>
[3f3931b0]100
101 <seglistitem>
[040ecb6]102 <seg>libhistory.so and libreadline.so</seg>
[1118b17]103 <seg>/usr/include/readline, /usr/share/readline, and
[fe05b08]104 /usr/share/doc/readline-&readline-version;</seg>
[3f3931b0]105 </seglistitem>
106 </segmentedlist>
107
108 <variablelist>
109 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
110 <?dbfo list-presentation="list"?>
111 <?dbhtml list-presentation="table"?>
112
113 <varlistentry id="libhistory">
114 <term><filename class="libraryfile">libhistory</filename></term>
115 <listitem>
116 <para>Provides a consistent user interface for recalling lines
117 of history</para>
118 <indexterm zone="ch-system-readline libhistory">
119 <primary sortas="c-libhistory">libhistory</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="libreadline">
125 <term><filename class="libraryfile">libreadline</filename></term>
126 <listitem>
127 <para>Aids in the consistency of user interface across discrete
128 programs that need to provide a command line interface</para>
129 <indexterm zone="ch-system-readline libreadline">
130 <primary sortas="c-libreadline">libreadline</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 </variablelist>
136
137 </sect2>
[3125dfb]138
139</sect1>
Note: See TracBrowser for help on using the repository browser.