【发布时间】:2023-09-28 18:40:01
【问题描述】:
出于某些原因,我正在从源代码构建 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/ 为空。我在/lib/terminfo 找到了xterm-256color 和xterm。当我使用包管理器(适用于 Ubuntu 17.10)安装 ncurses 时,它可以工作。所以我假设这个包选择了正确的路径。我分别复制了xterm-256color。 xterm 从 /lib/terminfo 到 /usr/share/terminfo/,我的构建现在可以在两个系统上运行。为什么存在两条不同的路径,为什么这两个版本的 ncurses 选择两条不同的路径?我需要一个 ncurses 的 conan 包,它可以开箱即用,无需复制描述文件。
这可能与以下内容重复: How to set custom search paths for the terminfo database when building ncurses from source
【问题讨论】:
标签: ncurses terminfo ubuntu-17.10