【问题标题】:How do i get the path of ncurses library on CentOS 8?如何在 CentOS 8 上获取 ncurses 库的路径?
【发布时间】:2021-12-20 21:48:34
【问题描述】:

我正在尝试在 CentOS 8.4 上编译 vim8.2

执行./configure --with-features=huge --enable-multibyte --enable-python3interp --enable-perlinterp --enable-luainterp --enable-cscope --enable-fail-if-missing --with-python3-command=/usr/bin/python3.8 --with-tlib=ncurses时,会出现错误:

checking for linking with ncurses library... OK
checking for tgetent()... configure: error: NOT FOUND!
    You need to install a terminal library; for example ncurses.
    Or specify the name of the library with --with-tlib.

我已经安装了 ncurses 及其各自的库 ncurses ncurses-devel ncurses-libs ncurses-compat-libs ncurses-c++-libs

问题在于在哪里可以找到 ncurses 库,以便可以指向它 --with-tlib。提前致谢。

【问题讨论】:

    标签: vim compilation ncurses centos8


    【解决方案1】:

    Vim 是一个termcap application,并且只使用 ncurses 库中的低级 termcap 函数。 CentOS 将其打包为两个库(ncurses 或 ncursesw 和 tinfo)。自 1998 以来,这一直是 ncurses 的配置选项,并且被希望最小化安装程序大小等的打包者使用。

    如果它使用pkg-config,vim 的配置脚本会正确处理这个输出:

    % pkg-config --libs ncurses
    -lncurses -ltinfo
    

    对于“tlib”,您需要“tinfo”库,例如,

    --with-tlib=tinfo
    

    但是,在some systems 上,可能存在其他问题。无论如何,config.log 文件中报告了实际问题。经过检查,大多数开发人员发现解决方案显而易见。

    (有人问previously,但没有提供洞察力的答案)。

    【讨论】:

    • 它没有用。无论如何,谢谢。
    • config.log 文件包含您的问题中省略的错误消息。当你分析它时,你就会得到答案。
    • 只运行./configure --with-features=huge --enable-python3interp 可以工作,也可以编译,但我没有测试它是否满足所有需求。非常感谢。
    猜你喜欢
    • 2016-01-11
    • 1970-01-01
    • 1970-01-01
    • 2011-01-14
    • 1970-01-01
    • 2022-10-04
    • 1970-01-01
    • 1970-01-01
    • 2016-02-12
    相关资源
    最近更新 更多