I am building cmake on RHEL with gcc and ncurses placed in a custom location /path/to/gcc/and/ncurses
which contains the standard /usr
structure i.e.
/path/to/gcc/and/ncurses
bin
include
include/ncurses
lib
lib64
Both my CPATH
and *LIBRARY_PATH
variables are pointing to appropriate directories.
I am not sure how to debug the process. The verbose output of bootstrap simply says:
-- Checking for curses support
-- Checking for curses support - Failed
When I grep for curses in the build directory I find a few references particularly in Source/Checks/Curses-build/CMakeCache.txt
//Path to a library.
CURSES_CURSES_LIBRARY:FILEPATH=CURSES_CURSES_LIBRARY-NOTFOUND
//Path to a library.
CURSES_FORM_LIBRARY:FILEPATH=CURSES_FORM_LIBRARY-NOTFOUND
//Path to a file.
CURSES_INCLUDE_PATH:PATH=/gpfs/panther/local/apps/dev/core/gcc/9.2.0/include/ncurses
//Path to a library.
CURSES_NCURSES_LIBRARY:FILEPATH=CURSES_NCURSES_LIBRARY-NOTFOUND
and in CMakeFiles/CMakeError.log
:
Checking for curses support failed with the following output:
Change Dir: /path/to/build/Source/Checks/Curses-build
The configure and build steps are executed as follows:
${SRC_DIR}/configure \
--prefix=${INSTALL_DIR} \
--verbose \
--parallel=16 \
&& make -j16 && make install
This really seems like some sort of minor omission, but I could not reproduce it on a similar RHEL machine were the same build script and cmake version build fine.
Please advise.