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