The Ncurses package contains libraries for terminal-independent handling of character screens.
Prepare Ncurses for compilation:
./configure --prefix=/usr --with-shared --without-debug
Compile the package:
make
This package does not come with a test suite.
Install the package:
make install
Give the Ncurses libraries execute permissions:
chmod -v 755 /usr/lib/*.5.4
Fix a library that should not be executable:
chmod -v 644 /usr/lib/libncurses++.a
Move the libraries to the /lib directory, where they are expected to reside:
mv -v /usr/lib/libncurses.so.5* /lib
Because the libraries have been moved, a few symlinks point to non-existent files. Recreate those symlinks:
ln -sfv ../../lib/libncurses.so.5 /usr/lib/libncurses.so ln -sfv libncurses.so /usr/lib/libcurses.so