我一直在尝试从源代码编译图形工具。运行./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。
答案 0 :(得分:2)
看起来你并不是唯一一个。似乎PKG_INSTALLDIR
打破了早于0.27 as experienced by someone else here的pkg-config版本。
pkg-config>似乎不是14.04的PPA。 0.26,来自我的简短搜索。您可能需要自己构建它。