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

How to install openldap 2.2.13 on MAC OS X?



Hi,all:

I want to install openldap 2.2.13 on my Macintosh( MAC OS X 10.3 ). First I installed Berkeley DB 4.2 in the /usr/local directory. Then with the CPPFLAGS=-I/usr/local/BerkeleyDB.4.2/include and LDFLAGS=-L/usr/local/BerkeleyDB.4.2/lib set, the configure returns no error, and tell me to do the "make depend".
make depend ended with no error except a little difference from what I did on linux.


Entering subdirectory doc
Making depend in /private/tmp/openldap-2.2.13/doc
Entering subdirectory man
Making depend in /private/tmp/openldap-2.2.13/doc/man
Entering subdirectory man1
make[3]: Nothing to be done for `depend'.

Entering subdirectory man3
make[3]: Nothing to be done for `depend'.

Entering subdirectory man5
make[3]: Nothing to be done for `depend'.

Entering subdirectory man8
make[3]: Nothing to be done for `depend'.


When I start to make the software, errors occured, error messages are here:
cc -r -keep_private_externs -nostdlib -o .libs/libldap-2.2.7.0.6.dylib-master.o bind.lo open.lo result.lo error.lo compare.lo search.lo controls.lo messages.lo references.lo extended.lo cyrus.lo modify.lo add.lo modrdn.lo delete.lo abandon.lo sasl.lo sbind.lo kbind.lo unbind.lo cancel.lo filter.lo free.lo sort.lo passwd.lo whoami.lo getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo request.lo os-ip.lo url.lo sortctrl.lo vlvctrl.lo init.lo options.lo print.lo string.lo util-int.lo schema.lo charray.lo tls.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo version.lo && cc -dynamiclib -flat_namespace -undefined suppress -o .libs/libldap-2.2.7.0.6.dylib .libs/libldap-2.2.7.0.6.dylib-master.o -L/usr/local/BerkeleyDB.4.2/lib -L../../libraries/liblber/.libs -llber -lc -install_name /usr/local/lib/libldap-2.2.7.dylib -compatibility_version 8 -current_version 8.6
ld: -undefined: unknown argument: -L/usr/local/BerkeleyDB.4.2/lib
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libldap.la] Error 1
make[1]: *** [all-common] Error 1
make: *** [all-common] Error 1


    Can anyone help me? Thanks.

- =======================================
¶،ضا¾‎


Wiscom System Co., Ltd.,ShangHai
Rm. D, 24/F,  CATIC Building
212  JiangNing Road, ShangHai China

Tel: (86-21)52895275-8005
Fax: (86-21)52895276
Zip: 200041
Mobile: 13917235890
http://www.wiscom.com.cn