Hi Guys,
OpsnLDAP is a tough nut to crack...isn't it? or is it really.
Lets see.
To install OpenLDAP we first need to install BDB.
*: Prerequsites:
*: Install c & c++ compiler
BerkeleyDB install steps:
Now lets install OpenLDAP.
5. make
6. make depend
7. make install
The above steps will work like charm and OpenLDAP will be installed in a matter of time.
OpsnLDAP is a tough nut to crack...isn't it? or is it really.
Lets see.
To install OpenLDAP we first need to install BDB.
*: Prerequsites:
- yum install gcc
- yum install gcc-c++
- Download BDB from: wget http://download.oracle.com/berkeley-db/db-5.1.25.tar.gz
- tar xzvf db-5.1.25.tar.gz
- cd db-5.1.25
- ./dist/configure --prefix=/custom/BerkeleyDB/5.1.25/
- make && make install
Now lets install OpenLDAP.
- Download Openldap at: wget ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.36.tgz
- cd openldap-2.4.36
- Set Library paths:
- export CPPFLAGS="-I /custom/BerkeleyDB/5.1.25/include"
- export LD_LIBRARY_PATH="/custom/BerkeleyDB/5.1.25/lib"
- export LDFLAGS="-L/usr/local/lib -L/custom/BerkeleyDB/5.1.25/lib -R/data/BerkeleyDB/5.1.25/lib" //note- this step is optional and can be ignored if we are able to run the configure command wthout any error.
5. make
6. make depend
7. make install
The above steps will work like charm and OpenLDAP will be installed in a matter of time.