安装gcc、make
yum -y install gcc make
cd db-4.8.30/build_unix/
../dist/configure
make;make install
先安装openssl、openssl-devel
cp -a /usr/local/BerkeleyDB.4.8/include/* /usr/include/
cp -a /usr/local/BerkeleyDB.4.8/lib/* /usr/lib
./configure –prefix=/usr/local/openldap –with-tls=openssl
“soelim: command not found” error.解决方法(执行./configure后,编译之前修改):
Edir Makefile => Remove “doc” in SUBDIRS= (line# 267).
make depend
make;make install
echo “/usr/local/openldap/lib” >> /etc/ld.so.conf