安装 libxslt 时无法链接到正确的 libxml2
尝试安装 libxslt-1.1.24
但在 ./configure
期间出现错误,提示:
checking for libxml libraries >= 2.6.27... configure: error: Version 2.6.16 found. You need at least libxml2 2.6.27 for this version of libxslt
但是 libxml2-2.7.3
刚刚安装并且可以在/usr/local/include/libxml2
中看到,
当我如何让libxslt
链接到新的libxml2
时./configure
?
Trying to install libxslt-1.1.24
but getting an error during ./configure
that says:
checking for libxml libraries >= 2.6.27... configure: error: Version 2.6.16 found. You need at least libxml2 2.6.27 for this version of libxslt
but libxml2-2.7.3
was JUST installed and can be seen in /usr/local/include/libxml2
How do I get libxslt
to link to new libxml2
when ./configure
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
各种
--with-libxml-*
参数将允许您将其指向 libxml2 的备用安装。有关更多详细信息,请参阅./configure --help
。The various
--with-libxml-*
arguments will allow you to point it to your alternate install of libxml2. See./configure --help
for more details.不确定您的 ld 缓存是否已通过 libxslt 安装重建,但如果没有,请尝试通过运行刷新它:(
确保 /usr/local/lib 已在 /etc/ld.so/conf 中)。
同样,您可能正在链接静态,或者缓存可能已经是最新的,所以这可能并不重要......但我想值得一试。
Unsure if your ld cache would have been rebuilt by the libxslt install, but if not, try refreshing it by running:
(make sure /usr/local/lib is already in /etc/ld.so/conf).
Again, you may be linking static, or the cache may already be up-to-date, so this may not matter... but worth a shot I suppose.