bearded / ruby-ldap

Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
http://rubyforge.org/projects/ruby-ldap/
Other
66 stars 34 forks source link

issue with ruby-ldap version 0.9.10 and 0.9.11 on ubuntu 10.04 64bit #7

Closed ghost closed 11 years ago

ghost commented 13 years ago

i have installed libldap2-dev and libssl-dev when i tried sudo gem install ruby-ldap then get below error

saslconn.c:19:23: error: sasl/sasl.h: No such file or directory saslconn.c: In function ‘rb_ldap_sasl_interaction’: saslconn.c:34: error: ‘sasl_interact_t’ undeclared (first use in this function) saslconn.c:34: error: (Each undeclared identifier is reported only once saslconn.c:34: error: for each function it appears in.) saslconn.c:34: error: ‘interact’ undeclared (first use in this function) saslconn.c:48: error: ‘SASL_CB_LIST_END’ undeclared (first use in this function) saslconn.c:53: error: ‘SASL_CB_GETREALM’ undeclared (first use in this function) saslconn.c:59: error: ‘SASL_CB_AUTHNAME’ undeclared (first use in this function) saslconn.c:65: error: ‘SASL_CB_USER’ undeclared (first use in this function) make: *\ [saslconn.o] Error 1

also when i type ldapsearch -x -H ldaps://ldap.01.com:636 then it gives me result as below ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

when i installed libgsasl7-dev and then gem install ruby-ldap -v=0.9.9 it works fine

ollie commented 13 years ago

If it doesn't work, try installing libsasl2-dev too (Ubuntu).

deepflame commented 12 years ago

thanks! that solved it for me

ghost commented 11 years ago

I think this issue can be closed.

Thanks for help, @ollie !

ollie commented 11 years ago

Wow, 2-3 years old issue. You're welcome. :smile:

ghost commented 11 years ago

Well, it was not really an issue of ruby-ldap :)

ollie commented 11 years ago

Ah, no, you got me wrong, I meant to say something like "Wow, 2-3 years old comment that managed to help someone." :)

nelsonenzo commented 10 years ago

The help still going strong! Using sudo apt-get install libldap2-dev libssl-dev libsasl2-dev worked for me to install ruby-ldap on Ubuntu 12.04

rtdp commented 10 years ago

yes, it still does help, worked for me too :-) // @ollie

chaitanyav commented 10 years ago

+1 for the solution, it still helps @ollie

$ sudo apt-get install libsasl2-dev Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: libsasl2-dev 0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded. Need to get 310 kB of archives. After this operation, 828 kB of additional disk space will be used. Get:1 http://mirrors.rit.edu/ubuntu-releases/precise-updates/main libsasl2-dev amd64 2.1.25.dfsg1-3ubuntu0.1 [310 kB] Fetched 310 kB in 0s (5,499 kB/s)
Selecting previously unselected package libsasl2-dev. (Reading database ... 392857 files and directories currently installed.) Unpacking libsasl2-dev (from .../libsasl2-dev_2.1.25.dfsg1-3ubuntu0.1_amd64.deb) ... Processing triggers for man-db ... Setting up libsasl2-dev (2.1.25.dfsg1-3ubuntu0.1) ...

$ gem install ruby-ldap Building native extensions. This could take a while... Successfully installed ruby-ldap-0.9.16 1 gem installed

ollie commented 10 years ago

Haha, great to hear. :)

alokswain commented 5 years ago

Documentation relevant with Ruby 2.2.3 and Ubuntu 18.04. Thanks.

vmvwebworks commented 3 years ago

for me worked with sudo apt install libldap2-dev in Ubuntu :)