Unix 安装libxslt时链接到正确的libxml2时出现问题

Unix 安装libxslt时链接到正确的libxml2时出现问题,unix,libxml2,configure,osx-leopard,libxslt,Unix,Libxml2,Configure,Osx Leopard,Libxslt,试图安装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 当/config

试图安装
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


/configure
时,如何让
libxslt
链接到新的
libxml2

各种
——带有libxml-*
参数将允许您将其指向libxml2的备用安装。有关详细信息,请参阅
/configure--help

各种
--with libxml-*
参数将允许您将其指向libxml2的备用安装。有关详细信息,请参阅
/configure--help

不确定您的ld缓存是否已由libxslt安装重建,但如果未重建,请尝试通过运行以下命令刷新它:

ldconfig
(确保/usr/local/lib已经在/etc/ld.so/conf中)。
同样,您可能正在链接静态,或者缓存可能已经是最新的,所以这可能无关紧要。。。但我认为值得一试。

不确定您的ld缓存是否会由libxslt安装重建,但如果不是,请尝试通过运行以下命令刷新它:

ldconfig
(确保/usr/local/lib已经在/etc/ld.so/conf中)。
同样,您可能正在链接静态,或者缓存可能已经是最新的,所以这可能无关紧要。。。但我认为值得一试。

加载程序配置没有告诉链接器在哪里可以找到库。加载程序配置没有告诉链接器在哪里可以找到库。