readline.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/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. <sect1info condition="script">
  10. <productname>readline</productname>
  11. <productnumber>&readline-version;</productnumber>
  12. <address>&readline-url;</address>
  13. </sect1info>
  14. <title>Readline-&readline-version;</title>
  15. <indexterm zone="ch-system-readline">
  16. <primary sortas="a-Readline">Readline</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Readline package is a set of libraries that offers command-line
  21. editing and history capabilities.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&readline-ch6-sbu;</seg>
  27. <seg>&readline-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Readline</title>
  33. <para>Reinstalling Readline will cause the old libraries to be moved to
  34. &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
  35. it can trigger a linking bug in <command>ldconfig</command>. This can be
  36. avoided by issuing the following two seds:</para>
  37. <screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
  38. sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
  39. <para>Prepare Readline for compilation:</para>
  40. <screen><userinput remap="configure">./configure --prefix=/usr \
  41. --disable-static \
  42. --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
  43. <para>Compile the package:</para>
  44. <screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib -lncursesw"</userinput></screen>
  45. <variablelist>
  46. <title>The meaning of the make option:</title>
  47. <varlistentry>
  48. <term><parameter>SHLIB_LIBS="-L/tools/lib -lncursesw"</parameter></term>
  49. <listitem>
  50. <para>This option forces Readline to link against the
  51. <filename class="libraryfile">libncursesw</filename> library.</para>
  52. </listitem>
  53. </varlistentry>
  54. </variablelist>
  55. <para>This package does not come with a test suite.</para>
  56. <para>Install the package:</para>
  57. <screen><userinput remap="install">make SHLIB_LIBS="-L/tools/lib -lncursesw" install</userinput></screen>
  58. <para>Now move the dynamic libraries to a more appropriate location
  59. and fix up some permissions and symbolic links:</para>
  60. <screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
  61. chmod -v u+w /lib/lib{readline,history}.so.*
  62. ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
  63. ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
  64. <para>If desired, install the documentation:</para>
  65. <screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
  66. </sect2>
  67. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
  68. <sect2 arch="ml_32,ml_all" role="installation">
  69. <title>Installation of Readline - 32-bit</title>
  70. <para>Clean previous build:</para>
  71. <screen><userinput remap="pre">make distclean</userinput></screen>
  72. <para>Prepare Readline for compilation:</para>
  73. <screen><userinput remap="configure">CC="gcc -m32 -march=i686" ./configure \
  74. --prefix=/usr \
  75. --libdir=/usr/lib32 \
  76. --disable-static \
  77. --host=i686-pc-linux-gnu</userinput></screen>
  78. <para>Compile the package:</para>
  79. <screen><userinput remap="make">make</userinput></screen>
  80. <para>Install the package:</para>
  81. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  82. cp -Rv DESTDIR/usr/lib32/* /usr/lib32
  83. rm -rf DESTDIR</userinput></screen>
  84. </sect2>
  85. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
  86. <sect2 arch="ml_x32,ml_all" role="installation">
  87. <title>Installation of Readline - x32-bit</title>
  88. <para>Clean previous build:</para>
  89. <screen><userinput remap="pre">make distclean</userinput></screen>
  90. <para>Prepare Readline for compilation:</para>
  91. <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
  92. --prefix=/usr \
  93. --libdir=/usr/libx32 \
  94. --disable-static \
  95. --host=x86_64-pc-linux-gnux32</userinput></screen>
  96. <para>Compile the package:</para>
  97. <screen><userinput remap="make">make</userinput></screen>
  98. <para>Install the package:</para>
  99. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  100. cp -Rv DESTDIR/usr/libx32/* /usr/libx32
  101. rm -rf DESTDIR</userinput></screen>
  102. </sect2>
  103. <sect2 id="contents-readline" role="content">
  104. <title>Contents of Readline</title>
  105. <segmentedlist>
  106. <segtitle>Installed libraries</segtitle>
  107. <segtitle>Installed directories</segtitle>
  108. <seglistitem>
  109. <seg>libhistory.so and libreadline.so</seg>
  110. <seg>/usr/include/readline and
  111. /usr/share/doc/readline-&readline-version;</seg>
  112. </seglistitem>
  113. </segmentedlist>
  114. <variablelist>
  115. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  116. <?dbfo list-presentation="list"?>
  117. <?dbhtml list-presentation="table"?>
  118. <varlistentry id="libhistory">
  119. <term><filename class="libraryfile">libhistory</filename></term>
  120. <listitem>
  121. <para>Provides a consistent user interface for recalling lines
  122. of history</para>
  123. <indexterm zone="ch-system-readline libhistory">
  124. <primary sortas="c-libhistory">libhistory</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="libreadline">
  129. <term><filename class="libraryfile">libreadline</filename></term>
  130. <listitem>
  131. <para>Provides a set of commands for manipulating text entered in an
  132. interactive session of a program.</para>
  133. <indexterm zone="ch-system-readline libreadline">
  134. <primary sortas="c-libreadline">libreadline</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. </variablelist>
  139. </sect2>
  140. </sect1>