ncurses-inst.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Ncurses</title>
  4. <para>Fix two minor things:</para>
  5. <para><screen><userinput>patch -Np1 -i ../ncurses-&ncurses-version;-etip-2.patch
  6. patch -Np1 -i ../ncurses-&ncurses-version;-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 being issued on the use of
  9. deprecated headers.</para>
  10. <para>Now prepare Ncurses to be compiled:</para>
  11. <para><screen><userinput>./configure --prefix=/tools --with-shared \
  12. &nbsp;&nbsp;&nbsp;&nbsp;--without-debug --without-ada</userinput></screen></para>
  13. <para>The meaning of the configure options:</para>
  14. <itemizedlist>
  15. <listitem><para><userinput>--without-ada</userinput>: This tells Ncurses not
  16. to build its Ada bindings, even if an Ada compiler is installed on the host.
  17. This must be done because once we enter the chroot environment, Ada will no
  18. longer be available.</para></listitem>
  19. </itemizedlist>
  20. <para>Compile the programs and libraries:</para>
  21. <para><screen><userinput>make </userinput></screen></para>
  22. <para>Then install them and their documentation:</para>
  23. <para><screen><userinput>make install</userinput></screen></para>
  24. </sect2>