1
0

readline.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <!-- NEW set of commands-->
  20. <para>Apply a patch.</para>
  21. <screen><userinput>patch -Np1 -i ../readline-&readline-version;-fixes-1.patch</userinput></screen>
  22. <para>Prepare Readline for compilation:</para>
  23. <screen><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
  24. <para>Compile the package:</para>
  25. <screen><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
  26. <para>Install the package:</para>
  27. <screen><userinput>make install</userinput></screen>
  28. <para>Give Readline's dynamic libraries to a more appropriate permissions:</para>
  29. <screen><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
  30. <para>Now we move the static libraries to a more appropriate location:</para>
  31. <screen><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
  32. <para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
  33. <screen><userinput>rm /lib/lib{readline,history}.so
  34. ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
  35. ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
  36. </sect2>
  37. <sect2 id="contents-readline" role="content"><title>Contents of Readline</title>
  38. <para>See testing</para>
  39. </sect2>
  40. </sect1>