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

Re: Problem building OpenLDAP on Solaris



I have a little 'doit' script myself that sets up the required LDFLAGS,
CFLAGS, and CPPFLAGS for stuff to work right for my Solaris stuff.  This
will give you some ideas...

CC=gcc
BDB_ROOT=/usr/local/BerkeleyDB/4.1
SSL_ROOT=/usr/local/ssl
CFLAGS="-I$BDB_ROOT/include -I/usr/local/include -I$SSL_ROOT/include"
CPPFLAGS="-I$BDB_ROOT/include -I/usr/local/include -I$SSL_ROOT/include"
LDFLAGS="-L$BDB_ROOT/lib -L/usr/local/lib -L$SSL_ROOT/lib"
LIBS="-lgnuregex"
export CC CFLAGS LDFLAGS CPPFLAGS LIBS

./configure --prefix=/opt/ldap ...


Mark Liu said:
> I am trying to build OpenLDAP on my Sun Sparc work
> station running Solaris 9.
>
> I have actually successfully installed OpenSSL under
> /usr/local/openssl, and also Berkeley DB 4.1.25 under
> /usr/local/BerkeleyDB.4.1.25.
>
> When I run ./configure for OpenLDAP, the script
> complains:
>
> ...
> checking for ssl.h... no
> checking for SSLeay_add_ssl_algorithms in -lssl... no
> checking for SSL_library_init in -lssl... no
> checking for ssl3_accept in -lssl... no
> configure: warning: Could not locate TLS/SSL package
> configure: warning: TLS data protection not supported!
> ...
> checking for db.h... yes
> checking for Berkeley DB link (default)... no
> checking for Berkeley DB link (-ldb41)... no
> checking for Berkeley DB link (-ldb-41)... no
> checking for Berkeley DB link (-ldb-4.1)... no
> checking for Berkeley DB link (-ldb-4-1)... no
> checking for Berkeley DB link (-ldb-4)... no
> checking for Berkeley DB link (-ldb4)... no
> checking for Berkeley DB link (-ldb)... no
> checking for Berkeley DB link (-ldb3)... no
> checking for Berkeley DB link (-ldb-3)... no
> checking for Berkeley DB link (-ldb2)... no
> checking for Berkeley DB link (-ldb-2)... no
> checking for Berkeley DB link (-ldb1)... no
> checking for Berkeley DB link (-ldb-1)... no
> configure: error: BDB: BerkeleyDB not available
>
> Obviously the script is not able to fine these
> installed packages.  I do not know how to handle this,
> being new to both LDAP and Solaris.
>
> Please kindly help.  Thanks a lot.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com


===========
Alan Sparks, UNIX/Linux Systems Administrator    <asparks@doublesparks.net>