6.10. Ncurses-6.0

The Ncurses package contains libraries for terminal-independent handling of character screens.

6.10.1. Installation of Ncurses

We will need Ncurses for several other packages in the temporary environment, including Bash, Util-linux, and Vim.

Prepare Ncurses for compilation:

./configure \
    --prefix=/tools \
    --with-shared \
    --build=${CLFS_HOST} \
    --host=${CLFS_TARGET} \
    --without-debug \
    --without-ada \
    --enable-overwrite \
    --with-build-cc=gcc \

The meaning of the new configure options:


This tells Ncurses to create a shared library.


This ensures that Ncurses does not build support for the Ada compiler which may be present on the host but will not be available when building the final system.


This tells Ncurses to install its header files into /tools/include, instead of /tools/include/ncurses, to ensure that other packages can find the Ncurses headers successfully.


This tells Ncurses which compiler to use to build native tools when cross-compiling.

Compile the package:


Install the package:

make install

Details on this package are located in Section 10.37.2, “Contents of Ncurses.”