我正在尝试从 https://wiki.documentfoundation.org/DLP/Libraries/libvisio 在我的 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,但它显示 Warning: libxml2-2.9.3 already installed
。
我使用的是 OS X 10.11.4
有人能帮帮我吗?谢谢
最佳答案
对于 Ubuntu,以下帮助了我:
apt-get install libxml2-dev
关于linux - 找不到包 'libxml-2.0',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37321397/