ncurses.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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>Prepare Ncurses for compilation:</para>
  14. <screen><userinput>./configure --prefix=/usr --with-shared --without-debug</userinput></screen>
  15. <para>Compile the package:</para>
  16. <screen><userinput>make</userinput></screen>
  17. <para>Install the package:</para>
  18. <screen><userinput>make install</userinput></screen>
  19. <para>Give the Ncurses libraries execute permissions:</para>
  20. <screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
  21. <para>And fix a library that shouldn't be executable:</para>
  22. <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
  23. <para>Move the libraries to the <filename>/lib</filename> directory,
  24. where they're expected to reside:</para>
  25. <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
  26. <para>Now the libraries have been moved, a few symlinks are pointing to
  27. non-existent files. Recreate those symlinks:</para>
  28. <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
  29. ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
  30. </sect2>
  31. &aa-ncurses-shortdesc;
  32. &aa-ncurses-desc;
  33. </sect1>