ncurses.xml 1.7 KB

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