readline.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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">
  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. <para>The Readline package contains the Readline command-line library.</para>
  11. <screen>&buildtime; XXX SBU
  12. &diskspace; 3.8 MB</screen>
  13. <para>Readline installation depends on: Binutils, Coreutils, Diffutils, Gawk,
  14. GCC, Glibc, Grep, Make, Ncurses, Sed.</para>
  15. <sect2>
  16. <title>Installation of Readline</title>
  17. <para>Readline has a number of bugs in it that cause it to not behave the
  18. way it is expected at times. Fix this behavior with the following
  19. patch:</para>
  20. <screen><userinput>patch -Np1 -i ../readline-&readline-version;-gnu-fixes-1.patch</userinput></screen>
  21. <para>Now prepare Readline for compilation:</para>
  22. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  23. <para>Compile the package:</para>
  24. <screen><userinput>make</userinput></screen>
  25. <para>Install the package:</para>
  26. <screen><userinput>make install</userinput></screen>
  27. <para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
  28. <screen><userinput>chmod 644 /usr/lib/*.&readline-version;</userinput></screen>
  29. <para>And move them to a more appropriate location:</para>
  30. <screen><userinput>mv /usr/lib/lib{readline,history}.so.4* /lib</userinput></screen>
  31. <para>Because the libraries have been moved, a few symlinks are now pointing to
  32. non-existent files. Recreate those symlinks:</para>
  33. <screen><userinput>ln -sf ../../lib/libhistory.so.4 /usr/lib/libhistory.so
  34. ln -sf ../../lib/libreadline.so.4 /usr/lib/libreadline.so</userinput></screen>
  35. </sect2>
  36. <sect2 id="contents-readline"><title>Contents of Readline</title>
  37. <para><emphasis>Installed libraries</emphasis>: Not checked.</para>
  38. </sect2>
  39. </sect1>