我试图在macOS上使用ncurses 6.0。我已经下载了该项目并使用提供的makefile创建了C++演示。然而,当我运行演示,我得到的错误:MacOS上的ncurses(OSX)找不到xterm-256color
Error opening terminal: xterm-256color.
这可能与我没有一个x
文件夹在我的terminfo
目录:
$ 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' ... –
@我'我'这似乎工作,但我在找什么? – sdgfsdh
我不确定你在找什么,虽然你明显通过make install来找到它。 :) –