- 论坛徽章:
- 0
|
近期有安装openldap 2.2的需求,所在虚拟机上测试安装一下,近期一直卡在BDB版本不匹配的问题上,上网找了很多材料,都不能解决其问题。
本机默认安装bdb4.3,但openldap版本需求是bdb4.2。不知道怎么把bdb版本“降级”。- # rpm -qf /lib/libdb-4.3.so
- db4-4.3.29-9.fc6
复制代码 环境:redhat 5.3 x86_64
安装脚本:- cd db-4.2.52/build_unix/
- ../dist/configure --prefix=/usr/local/openldap/BerkeleyDB && make && make install
- export CPPFLAGS="-I/usr/local/openldap/BerkeleyDB/include -D_GNU_SOURCE"
- export LDFLAGS="-L/usr/local/openldap/BerkeleyDB/lib -R/usr/local/openldap/BerkeleyDB/lib"
- export LD_LIBRARY_PATH="/install/db-4.2.52/build_unix/.libs"
- echo $CPPFLAGS $LDFLAGS $LD_LIBRARY_PATH
- sleep 3
- cd ../../openldap-2.2.30
- sh -x configure --prefix=/usr/local/openldap/ --enable-ldbm && make depend && make && make test && make install
复制代码 报错信息:
checking for ssl.h... no
configure: warning: Could not locate TLS/SSL package
configure: warning: TLS data protection not supported!
checking for _beginthread... no
checking for pthread.h... yes
checking POSIX thread version... 10
checking for LinuxThreads pthread.h... no
checking for GNU Pth pthread.h... no
checking for sched.h... yes
checking for pthread_create in default libraries... no
checking for pthread link with -kthread... no
checking for pthread link with -pthread... yes
checking for sched_yield... yes
checking for pthread_yield... yes
checking for thr_yield... no
checking for pthread_kill... yes
checking for pthread_rwlock_destroy... yes
checking for pthread_detach with <pthread.h>... yes
checking for pthread_setconcurrency... yes
checking for pthread_getconcurrency... yes
checking for thr_setconcurrency... no
checking for thr_getconcurrency... no
checking for pthread_kill_other_threads_np... no
checking for LinuxThreads implementation... no
checking for LinuxThreads consistency... no
checking if pthread_create() works... yes
checking if select yields when using pthreads... yes
checking for thread specific errno... yes
checking for thread specific h_errno... yes
checking for ctime_r... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 2
checking number of arguments of gethostbyname_r... 6
checking number of arguments of gethostbyaddr_r... 8
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb43)... no
checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4.3)... yes
checking for Berkeley DB version match... Berkeley DB version mismatch
header: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
library: Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006)
no
configure: error: Berkeley DB version mismatch
希望比较了解的朋友出出注意。 |
|