source: chapter06/readline.xml@ 54e422c1

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 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 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 54e422c1 was fa21b3d, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Initial support of UTF-8. Thanks Alexander Patrakov.

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

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[3125dfb]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1770019]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[3125dfb]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[81fd230]6<sect1 id="ch-system-readline" role="wrap">
[3125dfb]7<title>Readline-&readline-version;</title>
8<?dbhtml filename="readline.html"?>
9
10<indexterm zone="ch-system-readline"><primary sortas="a-Readline">Readline</primary></indexterm>
11
[a001133]12<sect2 role="package"><title/>
[e5846ef]13<para>The Readline package is a set of libraries that offers command-line
14editing and history capabilities.</para>
[3125dfb]15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
[1a017db]19<seglistitem><seg>0.11 SBU</seg><seg>9.1 MB</seg></seglistitem>
[a001133]20</segmentedlist>
[3125dfb]21
[81fd230]22<segmentedlist>
[45992ae]23<segtitle>&dependencies;</segtitle>
[81fd230]24<seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
25GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
26</segmentedlist>
[a001133]27</sect2>
[3125dfb]28
[a001133]29<sect2 role="installation">
[3125dfb]30<title>Installation of Readline</title>
31
[e8d07afc]32<para>Prepare Readline for compilation:</para>
[3125dfb]33
[5091251]34<screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
[3125dfb]35
36<para>Compile the package:</para>
37
[2c75e3c]38<screen><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
[3125dfb]39
[81fd230]40<para>The meaning of the make option:</para>
41
42<variablelist>
43<varlistentry>
[49ff2b2]44<term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
[81fd230]45<listitem><para>This option forces Readline to link against the
[fa21b3d]46<filename class="libraryfile">libncurses</filename>
47(really, <filename class="libraryfile">libncursesw</filename>)
48library.</para></listitem>
[81fd230]49</varlistentry>
50</variablelist>
51
[0be3d41]52<para>This package does not come with a test suite.</para>
53
[3125dfb]54<para>Install the package:</para>
55
56<screen><userinput>make install</userinput></screen>
57
[81fd230]58<para>Give Readline's dynamic libraries more appropriate permissions:</para>
[3125dfb]59
[5998892]60<screen><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen>
[3125dfb]61
[e5846ef]62<para>Now move the static libraries to a more appropriate location:</para>
[3125dfb]63
[5998892]64<screen><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
[3125dfb]65
[e5846ef]66<para>Next, remove the <filename class="extension">.so</filename> files in
67<filename class="directory">/lib</filename> and relink them into <filename
68class="directory">/usr/lib</filename>.</para>
[7111666]69
[5998892]70<screen><userinput>rm -v /lib/lib{readline,history}.so
71ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
72ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
[81fd230]73
[3125dfb]74</sect2>
75
76
[c6cb3aa]77<sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
[81fd230]78<segmentedlist>
79<segtitle>Installed libraries</segtitle>
80<seglistitem><seg>libhistory.[a,so], and libreadline.[a,so]</seg></seglistitem>
81</segmentedlist>
[3f0c882]82
[81fd230]83<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
84<?dbfo list-presentation="list"?>
[8f97096]85<?dbhtml list-presentation="table"?>
[81fd230]86
87<varlistentry id="libhistory">
88<term><filename class="libraryfile">libhistory</filename></term>
89<listitem>
90<para>Provides a consistent user interface
91for recalling lines of history</para>
92<indexterm zone="ch-system-readline libhistory"><primary sortas="c-libhistory">libhistory</primary></indexterm>
93</listitem>
94</varlistentry>
95
96<varlistentry id="libreadline">
97<term><filename class="libraryfile">libreadline</filename></term>
98<listitem>
99<para>Aids in the consistency of user interface
100across discrete programs that need to provide a command line
101interface</para>
102<indexterm zone="ch-system-readline libreadline"><primary sortas="c-libreadline">libreadline</primary></indexterm>
103</listitem>
104</varlistentry>
105
106</variablelist>
[3f0c882]107
[3125dfb]108</sect2>
109
110</sect1>
[81fd230]111
Note: See TracBrowser for help on using the repository browser.