首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Graph-tool/Autoconf - configure.ac:39:错误:可能未定义宏: PKG_INSTALLDIR

Graph-tool/Autoconf - configure.ac:39:错误:可能未定义宏: PKG_INSTALLDIR
EN

Stack Overflow用户
提问于 2016-11-05 00:47:16
回答 1查看 660关注 0票数 1

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

代码语言:javascript
运行
复制
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返回:

代码语言:javascript
运行
复制
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。

EN

回答 1

Stack Overflow用户

发布于 2016-11-05 02:19:13

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

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40427879

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档