Install OpenLDAP on Ubuntu (detailed solution with errors)
Install OpenLDAP on Ubuntu (detailed solution with errors)
1. Download OpenLDAP source code
Http://www.openldap.org/software/download/
Or
Ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release.tgz
2. decompress the package to the local device.
# Gunzip-c openldap-VERSION.tgz | tar xf-
# Cd openldap-2.4.44
#./Configure
Configure: error: BDB/HDB: BerkeleyDB notavailable
Prompt that the BerkeleyDB database is not installed locally
3. Install BerkeleyDB
Go to the Oracle official website to download:
Http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
Extract to local
Switch to the build_unix directory
# Cd build_unix
# ../Dist/configure
# Make
# Make install
Root @ cloudsoar-virtual-machine:/home/cloudsoar/db-6.2.23/build_unix # make install
Installing DB include files:/usr/local/BerkeleyDB.6.2/include...
Installing DB library:/usr/local/BerkeleyDB.6.2/lib...
Libtool: install: cp-p. libs/libdb-6.2.so/usr/local/BerkeleyDB.6.2/lib/libdb-6.2.so
Libtool: install: cp-p. libs/db_upgrade/usr/local/BerkeleyDB.6.2/bin/db_upgrade
Libtool: install: cp-p. libs/db_verify/usr/local/BerkeleyDB.6.2/bin/db_verify
Installing documentation:/usr/local/BerkeleyDB.6.2/docs...
4. view the installation
5. Set to System Variables
If this parameter is not set, the same error will be reported when the./configure check is executed when OpenLDAP is installed.
# Vim/etc/ld. so. conf
Add a row:/usr/local/BerkeleyDB.6.2/lib/
Save and exit.
Executed: # ldconfig-v
6 continue to install openldap-2.4.44
Switch to the openldap source code directory and re-execute the configure file.
#./Configure CPPFLAGS = "-I/usr/local/BerkeleyDB.6.2/include-D_GNU_SOURCE" LDFLAGS = "-L/usr/local/BerkeleyDB.6.2/lib"
Error reported after execution
Error: BerkeleyDB version incompatible withBDB/HDB backends
The reason is not found here, and then view the openladp-2.4.44, The README file directory found the following content:
Depressed, the original openldap-2.4.44 requirements with Oracle Berkeley 4.4-4.820.5.0-5.1, and I use db-6.2.23.tar.gz version.
If you have no idea, you can just download a new version of db-5.1.29.tar.gz from oracleguan.
Install Berkeley 6.2 again.
# Cd build_unix
# ../Dist/configure
# Make
# Make install
# Vim/etc/ld. so. conf
Add a row:/usr/local/BerkeleyDB.5.1/lib/
Save and exit.
Execution takes effect: ldconfig-v
8. Install openldap
Switch to openldap-2.4.44 directory
#./Configure CPPFLAGS = "-I/usr/local/BerkeleyDB.5.1/include-D_GNU_SOURCE" LDFLAGS = "-L/usr/local/BerkeleyDB.5.1/lib"
After the execution is complete, the prompt "make depand" is displayed.
9 compile software
Follow the steps of installing http://www.openldap.org/doc/admin24/install.html
Run the command: # make depend
Run the following command: # make
10 testing software
According to the official documentation, Once the software has been properly configured and successfullymade, you should run the test suite to verify the build.
We also need to test whether the installation is successful and execute the command: # make test
It indicates that the installation environment is okay.
11 install openldap ON THE SYSTEM
According to official documentation: By default OpenLDAP Software is installed in/usr/local. If youchanged this setting with the -- prefix configure option, it will be installedin the location you provide.
We can add the-prefix parameter to specify the location we want to install. By default, it is installed in the/usr/local directory.
Run the following command: # su root-c 'make install'
Here the openldap-2.4.44 has been successfully installed into my system. The default configuration file is in/usr/local/etc/openldap.
Next Ubuntu OpenLDAP Configuration
Liferay Portal configuration uses Oracle and OpenLDAP
Install OpenLDAP on CentOS 6.5 and configure LDAP for user logon
Install and configure OpenLDAP in RHEL7
Deployment steps of OpenLDAP server in Ubuntu
Axigen + OpenLDAP + BerkeleyDB + ejabberd multi-domain + WeChat chat detailed configuration
Deploy OpenLDAP authentication in CentOS
Install OpenLDAP server in CentOS Linux
OpenLDAP details: click here
OpenLDAP: click here
This article permanently updates the link address: