我試圖從https://wiki.documentfoundation.org/DLP/Libraries/libvisio無包「中的libxml-2.0」發現
在我的Mac OS X中添加libvisio我添加了所有扶養描述波紋管有幾種:
boost
gperf
icu
librevenge
libxml2
perl
doxygen
添加依賴關係我終究試圖運行下面的命令。
$ ./autogen.sh ''# only needed for building from git''
$ ./configure
$ make
$ make install
但是具有第二命令$ ./configure
獲得波紋管錯誤的問題,我。
configure: error: Package requirements (
libxml-2.0
) were not met:
No package 'libxml-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我曾嘗試與$ brew install libxml
安裝libxml2的,但是它說。
我正在使用OS X 10.11.4
有人可以幫我解決這個問題。由於
這對我不起作用。你怎麼知道名字'LIBXML_CFLAGS'和'LIBXML_LIBS'? –
我直接從粘貼在問題中的'./configure'錯誤消息中取出它們。你應該首先仔細看看你得到的錯誤信息,看看它是否給你提供任何線索。您可能還需要安裝'libxml2-devel',正如以下答案所述。 – margold
粘貼的消息來自Brew。就我所見,它沒有提及名稱「LIBXML_CFLAGS」和「LIBXML_LIBS」。它只提到他們的價值應該是什麼,這就是爲什麼我很好奇你怎麼知道他們應該被稱爲「LIBXML_CFLAGS」和「LIBXML_LIBS」。 –