source: chapter06/readline.xml@ c2913ea

Last change on this file since c2913ea was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[3125dfb]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[3125dfb]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-readline" xreflabel="Readline" role="wrap">
[6a0e6f3]8<title>Readline-&readline-version;</title>
[3125dfb]9<?dbhtml filename="readline.html"?>
10
11<indexterm zone="ch-system-readline"><primary sortas="a-Readline">Readline</primary></indexterm>
12
[6a0e6f3]13<section role="package"><title/>
[3125dfb]14<para>The Readline package contains the Readline command-line library.</para>
15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>XXX SBU</seg><seg>3.8 MB</seg></seglistitem>
20</segmentedlist>
[3125dfb]21
[a001133]22<segmentedlist>
23<segtitle>Readline installation depends on</segtitle>
24<seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
25GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
26</segmentedlist>
[1fe35e1]27</section>
[3125dfb]28
[1fe35e1]29<section role="installation">
[6a0e6f3]30<title>Installation of Readline</title>
[3125dfb]31
[51504be]32<para>The following patch fixes various issues including a problem where Readline
33sometimes will only show 33 characters on a line and then wrap to the next line.</para>
[5e81f02]34
[51504be]35<screen><userinput>patch -Np1 -i ../readline-&readline-version;-fixes-1.patch</userinput></screen>
[5e81f02]36
[e8d07afc]37<para>Prepare Readline for compilation:</para>
[3125dfb]38
39<screen><userinput>./configure --prefix=/usr</userinput></screen>
40
41<para>Compile the package:</para>
42
[a66c1cd3]43<screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
[3125dfb]44
45<para>Install the package:</para>
46
47<screen><userinput>make install</userinput></screen>
48
49<para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
50
[01b2d1b3]51<screen><userinput>chmod 755 /usr/lib/*.&readline-version;</userinput></screen>
[3125dfb]52
53<para>And move them to a more appropriate location:</para>
54
[e8d07afc]55<screen><userinput>mv /usr/lib/lib{readline,history}.so.5* /lib</userinput></screen>
[3125dfb]56
57<para>Because the libraries have been moved, a few symlinks are now pointing to
58non-existent files. Recreate those symlinks:</para>
59
[e8d07afc]60<screen><userinput>ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so
[546f9ee]61ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so</userinput></screen>
[3125dfb]62
[1fe35e1]63</section>
[3125dfb]64
65
[6a0e6f3]66<section xml:id="contents-readline" role="content"><title>Contents of Readline</title>
[c6cb3aa]67<segmentedlist>
68<segtitle>Installed libraries</segtitle>
69<seglistitem><seg>Not checked</seg></seglistitem>
70</segmentedlist>
[1fe35e1]71</section>
[3125dfb]72
73
[1fe35e1]74</section>
Note: See TracBrowser for help on using the repository browser.