【问题标题】:Add /usr/local to path for ./configure将 /usr/local 添加到 ./configure 的路径
【发布时间】:2016-06-01 04:00:31
【问题描述】:

我正在尝试安装需要librevenge-0-0libvisio-0.1.5。我得到错误:

checking for REVENGE... no
configure: error: Package requirements (
        librevenge-0.0
) were not met:

我刚刚安装了 librevenge,我拥有所有 pkg​​-config 信息,但它们位于 /usr/local/lib/pkgconfig 而不是 /usr/lib/pkgconfig

我如何告诉./configure 始终默认查看/usr/lib/pkgconfig/usr/local/lib/pkgconfig

我试过了

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
./configure

我有:

$ pkg-config --variable pc_path pkg-config
/usr/lib/pkgconfig:/usr/share/pkgconfig

【问题讨论】:

  • REVENGE_CFLAGS 和 REVENGE_LIBS 怎么样?

标签: linux static-libraries configure


【解决方案1】:

这个命令对我来说一直很完美......

export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig/


【讨论】:

    【解决方案2】:

    你必须这样做:

    ./configure --prefix=/usr/local
    

    【讨论】:

    • 这是默认配置
    猜你喜欢
    • 1970-01-01
    • 2013-04-22
    • 2013-06-12
    • 1970-01-01
    • 2019-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-03
    相关资源
    最近更新 更多