linux - 找不到包 'libxml-2.0'

标签 linux macos unix libxml2 vsdoc

我正在尝试从 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/

相关文章:

linux - 删除第一个匹配项

linux - 如何重定向桌面条目的输出

c - 64 位 GCC 上 int 的最大值是多少

mysql - 什么用户应该在 Mac 上拥有/usr/local/mysql?

bash - 同时在屏幕和文件上显示标准输出

linux - grep -v '.*' 不起作用

linux - 如何在 shell 脚本中使用 sed 从文件的每一行中删除单词?

macos - OSX Lion 中的套接字与 xcode4?

linux - 如何将我的 git 存储库镜像到家里的更多笔记本

linux - Unix 连接操作中的填充空字段