ncurses.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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>First fix two tiny bugs:</para>
  12. <screen><userinput>patch -Np1 -i ../&ncurses-etip-patch;
  13. patch -Np1 -i ../&ncurses-vsscanf-patch;</userinput></screen>
  14. <para>The first patch corrects the <filename>etip.h</filename> header file, and
  15. the second patch prevents some compiler warnings on the use of deprecated
  16. headers.</para>
  17. <para>Now prepare Ncurses for compilation:</para>
  18. <screen><userinput>./configure --prefix=/usr --with-shared \
  19. &nbsp;&nbsp;&nbsp;&nbsp;--without-debug</userinput></screen>
  20. <para>Compile the package:</para>
  21. <screen><userinput>make</userinput></screen>
  22. <para>Install the package:</para>
  23. <screen><userinput>make install</userinput></screen>
  24. <para>Give the Ncurses libraries execute permissions:</para>
  25. <screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
  26. <para>And fix a library that shouldn't be executable:</para>
  27. <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
  28. <para>Move the libraries to the <filename>/lib</filename> directory,
  29. where they're expected to reside:</para>
  30. <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
  31. <para>Since the libraries have been moved to
  32. <filename>/lib</filename>, a few symlinks are currently pointing
  33. towards non-existing files. Recreate those symlinks:</para>
  34. <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
  35. ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
  36. </sect2>
  37. </sect1>