readline.xml 3.6 KB

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