6.18. Installing Ncurses-5.2

Estimated build time:           1.88 SBU
Estimated required disk space:  22 MB

6.18.1. Installation of Ncurses

This package requires its patch to be applied before you can install it. Make sure it's unpacked before running the installation commands.

Install Ncurses by running the following commands:

patch -Np1 -i ../ncurses-5.2-2.patch &&
./configure --prefix=/usr --with-shared &&
make &&
make install &&
chmod 755 /usr/lib/*.5.2 &&
mv /usr/lib/libncurses.so.5* /lib &&
ln -s libncurses.a /usr/lib/libcurses.a &&
ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so &&
ln -sf ../../lib/libncurses.so.5 /usr/lib/libcurses.so

6.18.2. Command explanations

patch -Np1 -i ../ncurses-5.2-patch: This patch fixes a compile problem with GCC-3.2 because Ncurses uses constructions that are no longer valid in the new C++ standard.

--with-shared: This enables the build of the shared ncurses library files.

chmod 755 *.5.2: Shared libraries should be executable. Ncurses's install routine doesn't set the permissions properly so we do it manually instead.

ln -sf libncurses.a libcurses.a: Some programs try to link using -lcurses instead of -lncurses. This symlink ensures that such programs will link without errors.

6.18.3. Contents of Ncurses

Last checked against version 5.2.

6.18.3.2. Descriptions

6.18.4. Ncurses Installation Dependencies

Last checked against version 5.2.

Bash: sh
Binutils: ar, as, ld, ranlib
Diffutils: cmp
Fileutils: chmod, cp, install, ln, mkdir, mv, rm
Gcc: c++, cc1, cc1plus, collect2, cpp0, gcc
Glibc: ldconfig
Grep: egrep, fgrep, grep
Make: make
Gawk: gawk
Sed: sed
Sh-utils: basename, date, echo, expr, hostname, uname
Textutils: cat, sort, tr, wc