Title : OpenLdap with Berkeley DB Os : Linux Distro : Slackware URL : http://www.sleepycat.com/ http://www.openldap.org/ http://www.php.net/ I. Dowload Berkeley DB II. Download OpenLdap III. Download PHP Part I. Install Berkeley DB i. Download the tar.gz file , Untar the file. # cd db- # cd build_unix # ../dist/configure # make # make install ii. Preperation for OpenLdap # cd /usr/include # mv db.h db1.h # ln -s /usr/local/BerkeleyDB.4.1/include/db.h a. In /etc/ld.so.conf, add the line: /usr/local/BerkeleyDB.4.1/lib # ldconfig -vv Part II. Install OpenLdap i. Download the tar.gz file , UnTar the file. # cd openldap- # CPFLAGS=-I/usr/local/BerkeleyDB.4.1/include # export CPFLAGS LDFLAGS=-L/usr/local/BerkeleyDB.4.1/lib # export LDFLAGS # CFLAGS="-O2 -march=i486 -mcpu=i686" #./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/openldap \ --enable-syslog \ --enable-dynamic \ --with-readline \ --with-threads \ --with-tls \ --enable-slapd \ --enable-cleartext \ --enable-modules \ --enable-rlookups \ --enable-wrappers \ --enable-bdb \ --enable-slurpd # make # make install ii. Post Install a. Please refer back to http://www.openldap.org b. GUI , http://phpldapadmin.sourceforge.net/ Part III : Install PHP i. Download the tar.gz file , UnTar the file. # cd php- # ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ --with-mod_charset \ --enable-force-cgi-redirect \ --enable-discard-path \ --with-config-file-path=/etc/apache \ --with-openssl \ --enable-bcmath \ --with-bz2 \ --enable-calendar \ --enable-ctype \ --with-gdbm \ --with-db3 \ --enable-dbase \ --enable-ftp \ --enable-gd-imgstrttf \ --with-gd=/usr/local/gd2 \ --with-jpeg-dir=/usr/local/gd2 \ --with-png-dir=/usr/local/gd2 \ --with-xpm-dir=/usr/local/gd2 \ --with-gmp \ --with-mysql=/usr \ --with-xml=shared \ --with-mm=/usr \ --enable-trans-sid \ --enable-shmop \ --with-regex=php \ --enable-sysvsem \ --enable-memory-limit=yes \ --enable-sysvshm \ --enable-yp \ --with-tsrm-pthreads \ --enable-shared \ --disable-debug \ --with-zlib=/usr # make # make install
hmm... very usefull. i tried
hmm... very usefull. i tried google, but it doesn not gives the same result
configure: error: could not
configure: error: could not locate libtool ltdl.h
recompile the library: cd
recompile the library:
cd /usr/share/libtool/libltdl
./configure
make
make install
now compile openldap
I had the same error till I
I had the same error till I used this instead ...
CPFLAGS=-I/usr/local/BerkeleyDB.4.7/include
export CPFLAGS
LDFLAGS=-L/usr/local/BerkeleyDB.4.7/lib
export LDFLAGS