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
If it doesn't work, try installing libsasl2-dev too (Ubuntu).
thanks! that solved it for me
I think this issue can be closed.
Thanks for help, @ollie !
Wow, 2-3 years old issue. You're welcome. 😄
Well, it was not really an issue of ruby-ldap :)
Ah, no, you got me wrong, I meant to say something like "Wow, 2-3 years old comment that managed to help someone." :)
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
yes, it still does help, worked for me too :-) // @ollie
+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:
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
Haha, great to hear. :)