2016-11-04 52 views
1

我一直在试图从源代码编译图形工具。当运行./autogen.sh我收到以下错误信息:图形工具/ Autoconf - configure.ac:39:错误:可能未定义的宏:PKG_INSTALLDIR

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-confighttp://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。

回答

2

看起来你并不是唯一一个。看起来PKG_INSTALLDIR打破早于0.27​​的pkg-config版本。

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

+0

这是有用的知道,谢谢。根据另一篇文章中的建议,简单地评论PKG_INSTALLDIR行,唉,并没有解决问题。 –

相关问题