2003-01-16 02:32:32 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Ncurses</title>
|
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>First fix two tiny bugs:</para>
|
|
|
|
|
2003-05-13 07:25:53 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../ncurses-&ncurses-version;-etip-2.patch
|
|
|
|
patch -Np1 -i ../ncurses-&ncurses-version;-vsscanf.patch</userinput></screen></para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>The first patch corrects the <filename>etip.h</filename> header file, and
|
|
|
|
the second patch prevents some compiler warnings on the use of deprecated
|
|
|
|
headers.</para>
|
|
|
|
|
|
|
|
<para>Now prepare Ncurses for compilation:</para>
|
2003-01-16 02:32:32 +00:00
|
|
|
|
2003-05-12 19:42:01 +01:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr --with-shared \
|
2003-05-11 20:12:19 +01:00
|
|
|
--without-debug</userinput></screen></para>
|
2003-01-16 02:32:32 +00:00
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>Compile the package:</para>
|
2003-01-16 02:32:32 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>Give the Ncurses libraries execute permissions:</para>
|
2003-01-16 02:32:32 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen></para>
|
|
|
|
|
2003-08-30 00:20:23 +01:00
|
|
|
<para>And fix a library that shouldn't be executable:</para>
|
2003-05-13 06:09:24 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen></para>
|
|
|
|
|
2003-01-16 02:32:32 +00:00
|
|
|
<para>Move the libraries to the <filename>/lib</filename> directory,
|
|
|
|
where they're expected to reside:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen></para>
|
|
|
|
|
2003-02-03 23:24:24 +00:00
|
|
|
<para>Since the libraries have been moved to
|
2003-01-16 02:32:32 +00:00
|
|
|
<filename>/lib</filename>, a few symlinks are currently pointing
|
2003-01-27 22:10:07 +00:00
|
|
|
towards non-existing files. Recreate those symlinks:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-05-13 06:09:24 +01:00
|
|
|
<para><screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
|
2003-05-13 07:37:08 +01:00
|
|
|
ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|