checking for LIBXML2... no
configure: error: Package requirements (libxml-2.0 >= 2.6.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 LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
手动安装libxml2后,指定环境变量
解决办法: 确定 /usr/local/libxml2/lib/pkgconfig 目录下有 libxml-2.0.pc
export PKG_CONFIG_PATH=/usr/local/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH
configure: error: Package requirements (libxml-2.0 >= 2.6.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 LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
手动安装libxml2后,指定环境变量
解决办法: 确定 /usr/local/libxml2/lib/pkgconfig 目录下有 libxml-2.0.pc
export PKG_CONFIG_PATH=/usr/local/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH
本文介绍了一种常见的情况,即在尝试配置依赖于libxml2的软件包时遇到的问题。当系统未能找到所需的libxml2库时,会提示用户进行手动安装并设置环境变量。文章提供了具体的解决步骤,包括检查libxml2安装位置、设置PKG_CONFIG_PATH环境变量等。
3381

被折叠的 条评论
为什么被折叠?



