ncurses.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <sect1 id="ch-system-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 --without-debug</userinput></screen>
  18. <para>Compile the package:</para>
  19. <screen><userinput>make</userinput></screen>
  20. <para>Install the package:</para>
  21. <screen><userinput>make install</userinput></screen>
  22. <para>Give the Ncurses libraries execute permissions:</para>
  23. <screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
  24. <para>And fix a library that shouldn't be executable:</para>
  25. <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
  26. <para>Move the libraries to the <filename>/lib</filename> directory,
  27. where they're expected to reside:</para>
  28. <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
  29. <para>Since the libraries have been moved to
  30. <filename>/lib</filename>, a few symlinks are currently pointing
  31. towards non-existing files. Recreate those symlinks:</para>
  32. <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
  33. ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
  34. </sect2>
  35. &aa-ncurses-shortdesc;
  36. &aa-ncurses-desc;
  37. </sect1>