Discussion:
install openLDAP and missing lib & gcc
(too old to reply)
Hosam
2011-02-14 00:47:10 UTC
Permalink
Install OpenLDAP on Solaris BOX Hello All I'm try to install openLDAP
and configure it in My ORACLE Solaris10 Box and there is output

bash-3.00# ./configure
Configuring OpenLDAP 2.4.23-Release ...
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... build/shtool install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... no
checking configure arguments... done
checking for cc... no
checking for gcc... no
configure: error: Unable to locate cc(1) or suitable replacement.
Check PATH or set CC.
bash-3.00#

please can some body help me in my case
John D Groenveld
2011-02-14 00:54:45 UTC
Permalink
Post by Hosam
bash-3.00# ./configure
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin ./configure

John
***@acm.org
Hosam
2011-02-14 10:53:33 UTC
Permalink
Post by John D Groenveld
Post by Hosam
bash-3.00# ./configure
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin ./configure
John
ok man I'm update my path

PATH=$:/usr/bin:/usr/sbin:/usr/sfw/bin

and make ./configure and start to check all env but in end ask me for

configure: error: BDB/HDB: BerkeleyDB not available

and SUNWbdb, SUNWbdbj it's installed

SO How I can resolve this please
Chris Ridd
2011-02-14 11:23:59 UTC
Permalink
Post by Hosam
Post by John D Groenveld
Post by Hosam
bash-3.00# ./configure
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin ./configure
John
ok man I'm update my path
PATH=$:/usr/bin:/usr/sbin:/usr/sfw/bin
and make ./configure and start to check all env but in end ask me for
configure: error: BDB/HDB: BerkeleyDB not available
and SUNWbdb, SUNWbdbj it's installed
SO How I can resolve this please
You need to find out what OpenLDAP's configure script is really looking
for. Checking config.log might be helpful.

I would *guess* it needs header files as well as libraries. Does
SUNWbdb contain the necessary header files?
--
Chris
Hosam
2011-02-14 12:13:01 UTC
Permalink
Post by Chris Ridd
Post by Hosam
Post by John D Groenveld
Post by Hosam
bash-3.00# ./configure
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin ./configure
John
ok man I'm update my path
PATH=$:/usr/bin:/usr/sbin:/usr/sfw/bin
and make ./configure and start to check all env but in end ask me for
configure: error: BDB/HDB: BerkeleyDB not available
and SUNWbdb, SUNWbdbj it's installed
SO How I can resolve this please
You need to find out what OpenLDAP's configure script is really looking
for. Checking config.log might be helpful.
I would *guess* it needs header files as well as libraries. Does
SUNWbdb contain the necessary header files?
--
Chris
SO .... where is the header file for Berkely DB ???


best

Hosam
Ian Collins
2011-02-14 19:08:46 UTC
Permalink
Post by Hosam
[please don't multi-post!]
Post by Hosam
Install OpenLDAP on Solaris BOX Hello All I'm try to install openLDAP
and configure it in My ORACLE Solaris10 Box and there is output
Install OpenLDAP on Solaris BOX Hello All I'm try to install openLDAP
and configure it in My ORACLE Solaris10 Box and there is output
What compilers do you have installed and are they in your path? The
default gcc is in /usr/sfw/bin.
ok man I'm update my path
PATH=$:/usr/bin:/usr/sbin:/usr/sfw/bin
and make ./configure and start to check all env but in end ask me for
configure: error: BDB/HDB: BerkeleyDB not available
and SUNWbdb, SUNWbdbj it's installed
SO How I can resolve this please
I normally build my own bdb in /opt/local. To build OpenLDAP, I set

CPPFLAGS='-I /opt/local/include'
LDFLAGS='-L/opt/local/lib -R/opt/local/lib -ldb'
CC=cc

./configure --prefix=/opt/local --enable-dynamic --enable-modules
--enable-overlays=mod --enable-crypt --enable-rlookups

Use CPPFLAGS and LDFLAGS to select your bdb version.
--
Ian Collins
Hosam
2011-02-14 20:04:34 UTC
Permalink
Post by Hosam
[please don't multi-post!]
   Install OpenLDAP on Solaris BOX Hello All I'm try to install openLDAP
and configure it in My ORACLE Solaris10 Box and there is output
Install OpenLDAP on Solaris BOX Hello All I'm try to install openLDAP
and configure it in My ORACLE Solaris10 Box and there is output
What compilers do you have installed and are they in your path?  The
default gcc is in /usr/sfw/bin.
ok man I'm update my path
PATH=$:/usr/bin:/usr/sbin:/usr/sfw/bin
and make ./configure and start to check all env but in end ask me for
configure: error: BDB/HDB: BerkeleyDB not available
and SUNWbdb, SUNWbdbj it's installed
SO How I can resolve this please
I normally build my own bdb in /opt/local.  To build OpenLDAP, I set
CPPFLAGS='-I /opt/local/include'
LDFLAGS='-L/opt/local/lib -R/opt/local/lib -ldb'
CC=cc
./configure --prefix=/opt/local --enable-dynamic --enable-modules
--enable-overlays=mod --enable-crypt --enable-rlookups
Use CPPFLAGS and LDFLAGS to select your bdb version.
--
Ian Collins
thanks to advanced

man but there is another error

configure: error: could not locate libtool ltdl.h


best,
h***@bofh.ca
2011-02-15 13:17:40 UTC
Permalink
Post by Hosam
configure: error: could not locate libtool ltdl.h
Is there a particular reason why you don't just go to opencsw.org and
use their packages and tool to install a pre-built OpenLDAP?
--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
Loading...