[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Installation Troubles openldap / openssl -- sorry left off version numbers



Hi Nelson,

I did build openldap 2.2.29 with OpenSSL 0.9.8, Berkeley DB
4.2.52, Cyrus SASL 2.1.21 and here are the notes/steps I
followed and I was able to successfully build openldap. The
O.S I used was RH AS 3.0 Update 4.

Building Berkeley DB
--------------------

$  cd  /opt/db-4.2.52.NC/build_unix
$ ../dist/configure --prefix=/opt/db4.2.52/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if building in the top-level or dist directories... no
checking if --disable-cryptography option specified... no
checking if --disable-hash option specified... no
checking if --disable-queue option specified... no

[...]
config.status: creating include.tcl
config.status: creating db.h
config.status: creating db_config.h
config.status: db_config.h is unchanged

$ make
/bin/sh ./libtool --mode=compile cc -c -I. -I../dist/.. 
-D_GNU_SOURCE -D_REENTRANT -O2 ../dist/../mutex/mut_pthread.c
mkdir .libs
 cc -c -I. -I../dist/.. -D_GNU_SOURCE -D_REENTRANT -O2
../dist/../mutex/mut_pthread.c  -fPIC -DPIC -o
.libs/mut_pthread.o

[...]

cc -o .libs/db_verify .libs/db_verify.o 
.libs/util_cache.o .libs/util_sig.o  ./.libs/libdb-4.2.so
-lpthread  -Wl,--rpath -Wl,/opt/db4.2.52//lib
creating db_verify
/bin/sh ./libtool --mode=execute true db_verify

$ make install
Installing DB include files: /opt/db4.2.52//include ...
Installing DB library: /opt/db4.2.52//lib ...

[...]
cp -p .libs/db_verify /opt/db4.2.52//bin/db_verify
Installing documentation: /opt/db4.2.52//docs ...


Building Open SSL
-----------------

#  cd /opt/openssl-0.9.8
# ./config shared --openssldir=/opt/openssl0.9.8
Operating system: i686-whatever-linux2
Configuring for linux-elf

[...]

make[1]: Leaving directory `/opt/openssl-0.9.8/test'

Configured for linux-elf.


# make
making all in crypto...
make[1]: Entering directory `/opt/openssl-0.9.8/crypto'
( echo "#ifndef MK1MF_BUILD"; \
echo '  /* auto-generated by crypto/Makefile for
crypto/cversion.c */'; \

[...]

make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/openssl-0.9.8/tools'


# make install
making all in crypto...
make[1]: Entering directory `/opt/openssl-0.9.8/crypto'

[...]

cp openssl.pc /opt/openssl0.9.8/lib/pkgconfig
chmod 644 /opt/openssl0.9.8/lib/pkgconfig/openssl.pc


Building Cyrus SASL

# cd /opt/cyrus-sasl-2.1.21
# ./configure --prefix=/opt/cyrus-sasl2.1.21/ --enable-anon
--enable-plain --enable-login --disable-krb4 --disable-otp
--disable-cram --with-dblib=berkeley
--with-bdb-libdir=/opt/db4.2.52/lib
--with-bdb-incdir=/opt/db4.2.52/include
--with-openssl=/opt/openssl0.9.8
--with-plugin-dir=/opt/cyrus-sasl2.1.21/lib

configure: loading cache ./config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu

[...]

config.status: executing depfiles commands
Configuration Complete. Type 'make' to build.

# make
make[1]: Entering directory `/opt/cyrus-sasl-2.1.21'
Making all in include

[...]
make[1]: Leaving directory `/opt/cyrus-sasl-2.1.21'

# make install
Making install in include
make[1]: Entering directory `/opt/cyrus-sasl-2.1.21/include'

[...]

make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/opt/cyrus-sasl-2.1.21'
make[1]: Leaving directory `/opt/cyrus-sasl-2.1.21'


Building Open LDAP
-------------------

# cd /opt/openldap-2.1.21
#  export CPPFLAGS="-I/opt/db4.2.52/include 
-I/opt/openssl0.9.8/include -I/opt/cyrus-sasl2.1.21/include"
# export LDFLAGS="-L/opt/db4.2.52/lib -L/opt/openssl0.9.8/lib
-L/opt/cyrus-sasl2.1.21/lib"
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/db4.2.52/lib
# ./configure --prefix=/opt/openldap2.2.29 --with-cyrus-sasl 
--enable-slapd --enable-crypt --enable-spasswd --with-tls 
--enable-debug --enable-syslog --enable-dynamic --enable-local 
--enable-ldap --enable-ldbm --enable-referrals --enable-shell 
--enable-slurpd --enable-perl

Configuring OpenLDAP 2.2.29-Release ...
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu

[...]

creating include/ldap_features.h
creating include/lber_types.h
Please run "make depend" to build dependencies



# make depend
Making depend in /opt/openldap-2.2.29
  Entering subdirectory include

[...]

make[1]: Leaving directory `/opt/openldap-2.2.29/doc'

# make 
Making all in /opt/openldap-2.2.29
Entering subdirectory include

[...]

make[1]: Leaving directory `/opt/openldap-2.2.29/doc'


# make install
Making all in /opt/openldap-2.2.29
Entering subdirectory include

[...]

make[1]: Leaving directory `/opt/openldap-2.2.29/doc'

=========================

Regards,

Karthik D

--- "Nelson, Gregg" <Gregg.Nelson@CO.RAMSEY.MN.US> wrote:

> 
> > I am at my wits end....unfortunately not a long journey.
> > 
> > I am trying to install openldap with openssl.
> > 
> > Here are my openssl install lines:  version is 0.9.8a
> > 
> >         ./config shared --prefix=/usr/local
> --openssldir=/usr/local/openssl
> >         make clean; make; make install
> > 
> > 
> > Here are my openldap install lines:  version is 2.3.11
> > 
> >        export CPPFLAGS='-I/usr/include/openssl'
> >        export LDFLAGS='-L/usr/lib'
> > 
> >         ./configure     --prefix=/usr/local \
> >                         --with-tls \
> >                         --with-cyrus-sasl \
> >                         --enable-wrappers \
> >                         --enable-crypt \
> >                         --enable-bdb
> > 
> >         make depend; make test; make clean; make; make
> install
> > 
> > I've tried at least a dozen other variations suggested by
> web pages 
> > I've googled all to no avail.
> > 
> > On every configure run I get the following:
> > 
> > checking openssl/ssl.h usability... no
> > checking openssl/ssl.h presence... no
> > checking for openssl/ssl.h... no
> > checking ssl.h usability... no
> > checking ssl.h presence... no
> > checking for ssl.h... no
> > configure: error: Could not locate TLS/SSL package
> > 
> >  
> 
> 
> 



		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs