ncurses-inst.xml 1.6 KB

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