ncurses.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <sect1 id="ch05-ncurses">
  2. <title>Installing Ncurses-&ncurses-version;</title>
  3. <?dbhtml filename="ncurses.html" dir="chapter05"?>
  4. <screen>Estimated build time: &ncurses-time-tools;
  5. Estimated required disk space: &ncurses-compsize-tools;</screen>
  6. <para>For the package details see <xref linkend="contents-ncurses"/>.</para>
  7. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  8. <sect2>
  9. <title>Installation of Ncurses</title>
  10. <para>Fix a minor problem related to the <filename>etip.h</filename> header
  11. file:</para>
  12. <screen><userinput>patch -Np1 -i ../&ncurses-etip-patch;</userinput></screen>
  13. <para>Now prepare Ncurses for compilation:</para>
  14. <screen><userinput>./configure --prefix=/tools --with-shared \
  15. &nbsp;&nbsp;&nbsp;&nbsp;--without-debug --without-ada --enable-overwrite</userinput></screen>
  16. <para>The meaning of the configure options:</para>
  17. <itemizedlist>
  18. <listitem><para><userinput>--without-ada</userinput>: This tells Ncurses not
  19. to build its Ada bindings, even if an Ada compiler is installed on the host.
  20. This must be done because once we enter the chroot environment, Ada will no
  21. longer be available.</para></listitem>
  22. <listitem><para><userinput>--enable-overwrite</userinput>: This tells Ncurses
  23. to install its header files into <filename class="directory">/tools/include</filename>
  24. instead of <filename class="directory">/tools/include/ncurses</filename> to
  25. ensure that other packages can find the Ncurses headers successfully.</para>
  26. </listitem></itemizedlist>
  27. <para>Compile the programs and libraries:</para>
  28. <screen><userinput>make </userinput></screen>
  29. <para>Then install them and their documentation:</para>
  30. <screen><userinput>make install</userinput></screen>
  31. </sect2>
  32. </sect1>