I'm building ncurses 6.1 from source for some reasons. First I configure the sources with
./configure
and then I build it with
make
both without arguments. When I try to run tests I get the error message
Error opening terminal: xterm-256color.
on my local system (Ubuntu 17.10) and
Error opening terminal: xterm
on the build server (Jenkins Docker container).
I found out that this build is looking for terminal descriptions in /usr/share/terminfo/
. There are many descriptions but no xterm-256color
on my local system. On the build server the folder /usr/share/terminfo/
is empty. I found xterm-256color
and xterm
at /lib/terminfo
. When I install ncurses with package manager (apt for Ubuntu 17.10), it works. So I assume that this package chooses the right path. I copied xterm-256color
resp. xterm
from /lib/terminfo
to /usr/share/terminfo/
and my build works on both systems now. Why do two different paths exist and why do these two versions of ncurses choose two different paths? I need a conan package of ncurses that works out of the box without copying description files.
This could be a duplicate of: How to set custom search paths for the terminfo database when building ncurses from source