readline.xml 1.9 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" 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. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>XXX SBU</seg><seg>3.8 MB</seg></seglistitem>
  15. </segmentedlist>
  16. </sect2>
  17. <sect2 role="installation">
  18. <title>Installation of Readline</title>
  19. <para>Apply a patch.</para>
  20. <screen><userinput>patch -Np1 -i ../readline-&readline-version;-fixes-1.patch</userinput></screen>
  21. <para>Prepare Readline for compilation:</para>
  22. <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
  23. <para>Compile the package:</para>
  24. <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</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 755 /lib/lib{readline,history}.so*</userinput></screen>
  29. <para>Now we move the static libraries to a more appropriate location:</para>
  30. <screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
  31. <para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
  32. <screen><userinput>rm /lib/lib{readline,history}.so
  33. ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
  34. ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
  35. </sect2>
  36. <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
  37. <para>See testing</para>
  38. </sect2>
  39. </sect1>