2011-08-07 30 views
0

嘗試安裝libxslt-1.1.24,但在./configure期間出現錯誤,說:安裝libxslt時無法鏈接到正確的libxml2

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

回答

2

各種--with-libxml-*參數將允許您將其指向libxml2的備用安裝。有關更多詳細信息,請參見./configure --help

1

不確定,如果你的LD緩存會被的libxslt重建安裝,但如果沒有,嘗試通過運行刷新它:

ldconfig 

(確保在/ usr/local/lib目錄已經在/ etc/ld.so/conf)。 再一次,你可能會鏈接靜態,或緩存可能已經是最新的,所以這可能無關緊要,但值得一試我想。

+0

加載程序配置不會告訴鏈接程序在哪裏找到庫。 –