如何从源代码构建ncurses时为terminfo数据库设置自定义搜索路径?
更具体地说,如何强制在'〜/ .terminfo'中搜索主目录?
答案 0 :(得分:3)
获取编译的描述 如果设置了环境变量TERMINFO,则将其解释为 包含已编译描述的目录的路径名 继续努力。只搜索该目录。
If TERMINFO is not set, the ncurses version of the terminfo reader code will instead look in the directory $HOME/.terminfo for a compiled description.
您可能需要查阅联机帮助页以获取有关如何编译terminfo文件的信息。
我希望这会有所帮助。
答案 1 :(得分:1)
在--datadir
中定义configure
标记,例如:
configure --datadir=/usr/customshare
阅读位于ncurses文件根目录的INSTALL文件中的注释:
...
terminfo的位置由" - datadir"间接设置。 在给定datadir的情况下配置选项,例如/ usr / share / terminfo 在/ usr /股。如果要安装,可能需要覆盖它 在非标准位置对图书馆进行ncurses,但希望分享 terminfo数据库。
...
- 与-terminfo的-迪尔斯= XXX 指定将要编译的terminfo目录的搜索列表 进入ncurses库(默认值:DATADIR / terminfo)