源码安装openldap总结

Platform and software version:

OS:CentOS5.3

gcc:4.1.2

BerkeleyDB:4.8.24

openldap:2.4.19


1. Prerequisite software

GCC  
BerkeleyDB
openssl(installed by default)


2.Q&A


(1)不装GCC,执行./configure时,
出现错误:
configure: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC.

解决方法:
install gcc
[root@localhost openldap-2.4.19]#yum -y install gcc


(2)不装BerkeleyDB,执行./configure时,
出现错误:
configure: error: BDB/HDB: BerkeleyDB not available


解决方法:
[root@localhost BerkeleyDB]# unzip db-4.8.24.zip
[root@localhost BerkeleyDB]# cd db-4.8.24
[root@localhost db-4.8.24]# cd build_unix/
[root@localhost db-4.8.24]# ../dist/configure
[root@localhost db-4.8.24]# make
[root@localhost db-4.8.24]# make install


[root@localhost openldap-2.4.19]#export CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include"
[root@localhost openldap-2.4.19]#export LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib

-R/usr/local/BerkeleyDB.4.8/lib"
[root@localhost openldap-2.4.19]#export LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.6/lib"


3.install openldap


[root@localhost openldap-2.4.19]#./configure
[root@localhost openldap-2.4.19]#make depend
[root@localhost openldap-2.4.19]#make
[root@localhost openldap-2.4.19]#make test
[root@localhost openldap-2.4.19]#make install


你可能感兴趣的:(error,localhost,version,software,default)