# Ldap install problem

**URL:** <https://www.ruby-forum.com/t/ldap-install-problem/49597>\
**Category:** Ruby\
**Created:** [December 6, 2005, 7:31pm UTC](https://www.ruby-forum.com/t/ldap-install-problem/49597 "2005-12-06T19:31:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![szot.shaun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2acd7d/32.png) [@szot.shaun](https://www.ruby-forum.com/u/szot.shaun)\
**Post date:** [December 6, 2005, 7:31pm UTC](https://www.ruby-forum.com/t/ldap-install-problem/49597/1 "2005-12-06T19:31:34Z")

</div>

Trying to install ruby-ldap on solaris x86 I keep recieving an error  
that I’m not sure how to resolve. Does anyone know what could be wrong  
or have any suggestions as to what I might try?

# ruby extconf.rb --with-openldap2

–with-ldap-dir=/usr  
checking for ldap.h… yes  
checking for lber.h… yes  
checking for ldap\_ssl.h… no  
checking for openssl/ssl.h… no  
checking for ssl.h… no  
checking for openssl/crypto.h… no  
checking for crypto.h… no  
checking for main() in -lcrypto… no  
checking for main() in -lssl… no  
checking for main() in -lnsl… yes  
checking for main() in -lpthread… yes  
checking for main() in -lresolv… yes  
checking for main() in -llber… no  
checking for main() in -lldap\_r… no  
checking for main() in -lldap… yes  
checking for ldap\_init()… yes  
checking for ldap\_set\_option()… yes  
checking for ldap\_get\_option()… yes  
checking for ldap\_start\_tls\_s()… no  
checking for ldap\_memfree()… yes  
checking for ldap\_perror()… yes  
checking for ldap\_sort\_entries()… yes  
checking for ldapssl\_init()… yes  
checking for ldap\_sslinit()… no  
checking for ldap\_sasl\_bind\_s()… yes  
checking for ldap\_compare\_s()… yes  
checking for ldap\_add\_ext\_s()… yes  
checking for ldap\_compare\_ext\_s()… yes  
checking for ldap\_delete\_ext\_s()… yes  
checking for ldap\_modify\_ext\_s()… yes  
checking for ldap\_search\_ext\_s()… yes  
checking for ldap\_unbind\_ext\_s()… no  
checking for ldap\_sasl\_interactive\_bind\_s()… yes  
CFLAGS = -g -O2 -DUSE\_OPENLDAP2 -DUSE\_OPENLDAP -I/usr/include  
-D\_REENTRANT  
LDFLAGS = -L/usr/lib  
creating Makefile

-bash-3.00$ make  
gcc -fPIC -g -O2 -DUSE\_OPENLDAP2 -DUSE\_OPENLDAP -I/usr/include  
-D\_REENTRANT -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10  
-I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -DHAVE\_LDAP\_H  
-DHAVE\_LBER\_H -DHAVE\_LDAP\_INIT -DHAVE\_LDAP\_SET\_OPTION  
-DHAVE\_LDAP\_GET\_OPTION -DHAVE\_LDAP\_MEMFREE -DHAVE\_LDAP\_PERROR  
-DHAVE\_LDAP\_SORT\_ENTRIES -DHAVE\_LDAPSSL\_INIT -DHAVE\_LDAP\_SASL\_BIND\_S  
-DHAVE\_LDAP\_COMPARE\_S -DHAVE\_LDAP\_ADD\_EXT\_S -DHAVE\_LDAP\_COMPARE\_EXT\_S  
-DHAVE\_LDAP\_DELETE\_EXT\_S -DHAVE\_LDAP\_MODIFY\_EXT\_S  
-DHAVE\_LDAP\_SEARCH\_EXT\_S -DHAVE\_LDAP\_SASL\_INTERACTIVE\_BIND\_S -c  
saslconn.c  
saslconn.c: In function `rb_ldap_conn_sasl_bind': saslconn.c:54: error:`LDAP\_SASL\_AUTOMATIC’ undeclared (first use in  
this function)  
saslconn.c:54: error: (Each undeclared identifier is reported only once  
saslconn.c:54: error: for each function it appears in.)  
saslconn.c:83: error: `LDAP\_SASL\_QUIET’ undeclared (first use in this  
function)  
make: \*\*\* [saslconn.o] Error 1

---

<div class="post-metadata">

**Author:** ![szot.shaun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2acd7d/32.png) [@szot.shaun](https://www.ruby-forum.com/u/szot.shaun)\
**Post date:** [December 16, 2005, 8:42am UTC](https://www.ruby-forum.com/t/ldap-install-problem/49597/2 "2005-12-16T08:42:39Z")

</div>

sms \<szot.shaun [gmail.com](http://gmail.com)\> writes:

> Trying to install ruby-ldap on solaris x86 I keep recieving an error  
> that I’m not sure how to resolve. Does anyone know what could be wrong  
> or have any suggestions as to what I might try?
> 
> make: \*\*\* [saslconn.o] Error 1

I feel your pain. I tried compiling it on Solaris 10 SPARC using some  
slightly  
old Netscape SDK libraries, the native LDAP libraries installed with the  
OS  
(derived from the Netscape libs), and then against some openldap-2.2.23  
libs  
that I know work because they’re linked into Postfix. After all of that,  
still  
no go.

I have to say this is the thing that will really hold back Ruby. I know  
there  
are various efforts from RRA and whatnot to get like the CPAN  
environment, but  
Ruby really needs to focus on this. It was a hell of a lot easier to  
blow in the  
perl-ldap extension. Most users simply are not going to jump through all  
of  
these hoops, and I have to admit I’m about to give up myself.

---

<div class="post-metadata">

**Author:** ![szot.shaun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2acd7d/32.png) [@szot.shaun](https://www.ruby-forum.com/u/szot.shaun)\
**Post date:** [December 16, 2005, 5:18pm UTC](https://www.ruby-forum.com/t/ldap-install-problem/49597/3 "2005-12-16T17:18:27Z")

</div>

sms \<szot.shaun [gmail.com](http://gmail.com)\> writes:

> Trying to install ruby-ldap on solaris x86 I keep recieving an error  
> that I’m not sure how to resolve. Does anyone know what could be wrong  
> or have any suggestions as to what I might try?

> make: \*\*\* [saslconn.o] Error 1

Do you have Cyrus SASL or the like already installed? The default Ruby  
LDAP build is looking for it…
