readline.xml 4.1 KB

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