2013-08-02 29 views
2

我在配置OPENLDAP 2.4.35。在Redhat Linux上,我已經安裝了Berkley DB 4.8.30作爲先決條件。我還檢查版本兼容性從OpenLDAP的README文件,該文件說:配置LDAP時發生Berkeley DB不匹配錯誤

SLAPD: 
    BDB and HDB backends require Oracle Berkeley DB 4.4 - 4.8, 
    or 5.0 - 5.1. It is highly recommended to apply the 
    patches from Oracle for a given release. 

我依然收到此錯誤:

checking db.h usability... yes 
    checking db.h presence... yes 
    checking for db.h... yes 
    checking for Berkeley DB major version in db.h... 4 
    checking for Berkeley DB minor version in db.h... 8 
    checking if Berkeley DB version supported by BDB/HDB backends... yes 
    checking for Berkeley DB link (-ldb-4.8)... yes 
    *checking for Berkeley DB library and header version match... no 
    configure: error: Berkeley DB version mismatch* 

請幫助

+0

http://stackoverflow.com/questions/3848064/openldap-installation-not-finding-the-berkelydb?rq=1 –

+0

@PiotrWadas我已經看到了這個鏈接。這是不同的。在這裏它根本無法找到伯克利數據庫。在我的情況下,它正確地定位數據庫,但顯示「不匹配錯誤」 –

回答

6

現在的配置工作正常。我不得不出口的庫路徑的Berkeley DB正確:

export LD_LIBRARY_PATH="/root/db-6.0.20/build_unix/.libs" 
+0

你在哪裏運行此命令?另外,是否LD_LIBRARY_PATH應該被替換爲某個路徑?我目前正在處理同樣的問題,而且我對Linux很陌生。我正在使用SUSE Linux。 – Eki

+1

@KartikeBhagat這個必須在Linux終端上運行,就像你正在安裝LDAP的用戶一樣。希望這有助於OSX的 –

+0

解決方案?我沒有'/ root' – shashwat