我一直在試圖從源代碼編譯圖形工具。當運行./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-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。
這是有用的知道,謝謝。根據另一篇文章中的建議,簡單地評論PKG_INSTALLDIR行,唉,並沒有解決問題。 –