【问题标题】:Graph-tool/Autoconf - configure.ac:39: error: possibly undefined macro: PKG_INSTALLDIR图形工具/Autoconf - configure.ac:39:错误:可能未定义的宏:PKG_INSTALLDIR
【发布时间】:2017-03-18 14:16:31
【问题描述】:

我一直在尝试从源代码编译图形工具。运行 ./autogen.sh 时,我收到以下错误消息:

libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:39: error: possibly undefined macro: PKG_INSTALLDIR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

我被告知这是因为我缺少pkg-config (http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/graph-triangulation-cc-55-61-fatal-error-CGAL-Periodic-3-Delaunay-triangulation-traits-3-h-No-such-fy-td4026810.html#a4026824) 但pkg-config 已经在我的机器上运行并且是最新版本。运行dpkg -l pkg-config 返回:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                  Version                         Architecture                    Description
+++-=====================================================-===============================-===============================-===============================================================================================================
ii  pkg-config                                            0.26-1ubuntu4                   amd64                           manage compile and link flags for libraries

有谁知道我可以如何解决这个问题或它是由什么引起的?我正在运行 Ubuntu 14.04。

【问题讨论】:

    标签: ubuntu-14.04 autoconf pkg-config graph-tool autogen


    【解决方案1】:

    看来你不是唯一一个。 PKG_INSTALLDIR 似乎破坏了早于 0.27 as experienced by someone else here 的 pkg-config 版本。

    根据我的简短搜索,pkg-config > 0.26 的 14.04 似乎没有 PPA。您可能必须自己构建它。

    【讨论】:

    • 这很有用,谢谢。唉,只是按照另一篇文章中的建议注释掉 PKG_INSTALLDIR 行并没有解决问题。
    猜你喜欢
    • 2014-04-19
    • 1970-01-01
    • 1970-01-01
    • 2015-04-18
    • 1970-01-01
    • 1970-01-01
    • 2019-05-07
    • 2012-02-07
    相关资源
    最近更新 更多