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 755 /usr/lib/*.5.4
Fix a library that should not be executable:
chmod 644 /usr/lib/libncurses++.a
Move the libraries to the /lib directory, where they are expected to reside:
mv /usr/lib/libncurses.so.5* /lib
Because the libraries have been moved, a few symlinks point to non-existent files. Recreate those symlinks:
ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so ln -sf libncurses.so /usr/lib/libcurses.so