Softprayog.in

Installation of OpenLDAP on Solaris


Error:

C compiler cannot create executables.

Solution:

Ensure that gcc is ahead of cc in PATH.
Set the shell environment variable,

CC=gcc
export CC

Error:

Berkely DB not available.

Solution:

Set CPPFLAGS shell environment variable to the directory containing db.h header file of Berkely DB. For example,

CPPFLAGS=-I/usr/db-4.6.21/build_unix
export CPPFLAGS

Error:

Structure has no member named lk_handle

Solution:

Maybe, you are using Berkely DB 4.7. Try using Bekely DB 4.6.

During the installation, make sure that the PATH has all the directories containing executables in the right order, especially after changing over to the superuser shell for make install.