ncurses.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <sect1 id="ch06-ncurses" xreflabel="Ncurses">
  2. <title>Installing Ncurses-&ncurses-version;</title>
  3. <?dbhtml filename="ncurses.html" dir="chapter06"?>
  4. <para>The Ncurses package contains libraries for the terminal-independent
  5. handling of character screens.</para>
  6. <screen>&buildtime; &ncurses-time;
  7. &diskspace; &ncurses-compsize;</screen>
  8. &aa-ncurses-down;
  9. &aa-ncurses-dep;
  10. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  11. <sect2>
  12. <title>Installation of Ncurses</title>
  13. <para>Fix a minor problem related to the <filename>etip.h</filename> header
  14. file:</para>
  15. <screen><userinput>patch -Np1 -i ../&ncurses-etip-patch;</userinput></screen>
  16. <para>Now prepare Ncurses for compilation:</para>
  17. <screen><userinput>./configure --prefix=/usr --with-shared \
  18. &nbsp;&nbsp;&nbsp;&nbsp;--without-debug</userinput></screen>
  19. <para>Compile the package:</para>
  20. <screen><userinput>make</userinput></screen>
  21. <para>Install the package:</para>
  22. <screen><userinput>make install</userinput></screen>
  23. <para>Give the Ncurses libraries execute permissions:</para>
  24. <screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
  25. <para>And fix a library that shouldn't be executable:</para>
  26. <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
  27. <para>Move the libraries to the <filename>/lib</filename> directory,
  28. where they're expected to reside:</para>
  29. <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
  30. <para>Since the libraries have been moved to
  31. <filename>/lib</filename>, a few symlinks are currently pointing
  32. towards non-existing files. Recreate those symlinks:</para>
  33. <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
  34. ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
  35. </sect2>
  36. &aa-ncurses-shortdesc;
  37. &aa-ncurses-desc;
  38. </sect1>