readline.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-readline" xreflabel="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 contains the Readline command-line library.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>XXX SBU</seg><seg>3.8 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Readline installation depends on</segtitle>
  19. <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
  20. GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Readline</title>
  25. <para>Readline has a number of bugs in it that cause it to not behave the
  26. way it is expected at times. Fix this behavior with the following
  27. patch:</para>
  28. <screen><userinput>patch -Np1 -i ../readline-&readline-version;-gnu-fixes-1.patch</userinput></screen>
  29. <para>Now prepare Readline for compilation:</para>
  30. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  31. <para>Compile the package:</para>
  32. <screen><userinput>make</userinput></screen>
  33. <para>Install the package:</para>
  34. <screen><userinput>make install</userinput></screen>
  35. <para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
  36. <screen><userinput>chmod 644 /usr/lib/*.&readline-version;</userinput></screen>
  37. <para>And move them to a more appropriate location:</para>
  38. <screen><userinput>mv /usr/lib/lib{readline,history}.so.4* /lib</userinput></screen>
  39. <para>Because the libraries have been moved, a few symlinks are now pointing to
  40. non-existent files. Recreate those symlinks:</para>
  41. <screen><userinput>ln -sf ../../lib/libhistory.so.4 /usr/lib/libhistory.so
  42. ln -sf ../../lib/libreadline.so.4 /usr/lib/libreadline.so</userinput></screen>
  43. </sect2>
  44. <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
  45. <segmentedlist>
  46. <segtitle>Installed libraries</segtitle>
  47. <seglistitem><seg>Not checked</seg></seglistitem>
  48. </segmentedlist>
  49. </sect2>
  50. </sect1>