由于某些原因,我正在从源代码构建 ncurses 6.1。首先我配置源
./configure
然后我用
make
两者都没有论据。当我尝试运行测试时,我收到错误消息
Error opening terminal: xterm-256color.
在我的本地系统(Ubuntu 17.10)和
Error opening terminal: xterm
在构建服务器(Jenkins Docker 容器)上。
我发现这个版本正在寻找终端描述/usr/share/terminfo/
。有很多描述,但xterm-256color
在我的本地系统上没有。在构建服务器上,该文件夹/usr/share/terminfo/
为空。我发现xterm-256color
并xterm
在/lib/terminfo
. 当我使用包管理器(适用于 Ubuntu 17.10)安装 ncurses 时,它可以工作。所以我假设这个包选择了正确的路径。我复制了xterm-256color
resp。xterm
from /lib/terminfo
to/usr/share/terminfo/
和我的构建现在可以在两个系统上运行。为什么存在两条不同的路径,为什么这两个版本的 ncurses 选择两条不同的路径?我需要一个开箱即用的 ncurses 柯南包,无需复制描述文件。
这可能与以下内容重复: How to set custom search paths for terminfo database when building ncurses from source