【发布时间】:2017-02-11 11:01:42
【问题描述】:
我正在尝试在 macOS 上使用 ncurses 6.0。我已经下载了项目并使用提供的 makefile 构建了 C++ 演示。但是,当我运行演示时,我得到了错误:
打开终端时出错:xterm-256color。
这可能是相关的:我的terminfo 目录中没有x 文件夹:
$ ls /usr/share/terminfo/
31 36 45 51 64 69 6e 73 78
32 37 4c 58 65 6a 6f 74 7a
33 38 4d 61 66 6b 70 75
34 39 4e 62 67 6c 71 76
35 41 50 63 68 6d 72 77
演示在 Debian 上正常运行。
我的配置输出是:
** Configuration summary for NCURSES 6.0 20150808:
extended funcs: yes
xterm terminfo: xterm-new
bin directory: /usr/local/bin
lib directory: /usr/local/lib
include directory: /usr/local/include/ncurses
man directory: /usr/local/share/man
terminfo directory: /usr/local/share/terminfo
** Include-directory is not in a standard location
因为我很懒且不阅读手册,所以我没有运行完整的设置程序。运行后:
./configure
make
make install
现在可以了。
【问题讨论】:
-
尝试从
test目录中执行./configure && make... -
@I'L'I 这似乎可行,但我在寻找什么?
-
我不确定您在寻找什么,尽管您显然是通过 make install 找到的。 :)