openldap install

Install the db-4.7.25.tar.gz package first

wget http://download.oracle.com/berkeley-db/db-4.7.25.tar.gz

解压
tar xvf db-4.7.25.tar.gz 
cd db-4.7.25/
cd build_unix/
我安装到了/home/app 下
../dist/configure -prefix=/home/app/BerkeleyDB

make
一定要加上sudo,会多安一点东西
sudo make install

So far, BerkeleyDB installation is complete

Then in order to install openldap, it is recommended to configure these environment variables first.

Modify the files under /etc/ld.so.conf

最后加上
/home/app/BerkeleyDB/lib/

加载一下
ldconfig -v 

install openldap

wget ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/openldap-2.4.15.tgz

tar -zxvf openldap-2.4.15.tgz
cd openldap-2.4.15

一定要在openldap-2.4.15 这个目录里面,执行这几句话。试了好几次
export CPPFLAGS="-I/home/app/BerkeleyDB/include"
export LDFLAGS="-L/home/app/BerkeleyDB/lib"
export LD_LIBRARY_PATH="/home/app/BerkeleyDB/lib" 

At this time, openldap can be installed normally

./configure

make depend

make

make install

Done! ! !

Guess you like

Origin blog.csdn.net/qq_37761711/article/details/129740096