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