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

Error when trying to run cucumber tests #33

Closed turbogeek421 closed 9 years ago

turbogeek421 commented 9 years ago

I'm currently trying to update a (very) old rails application but am running into this error when trying to run cucumber tests:

ruby1.8: symbol lookup error: /vagrant/vendor/gems/ruby/1.8/gems/ruby-ldap-0.9.17/lib/ldap.so: undefined symbol: rb_hash_dup

Rails 2.3.18 Ruby 1.8.7

Any ideas?

dacamp commented 9 years ago

rb_hash_dup was added to Ruby 1.9. Commit 01c0fdf added it to the repo, which appears to only be in version 0.9.17. Try to pin your version to 0.9.16 and let me know if that works.

Documentation should probably be updated to include as much.

turbogeek421 commented 9 years ago

Updated my Gemfile to specify '0.9.16' and that seems to have fixed the issue.

Thanks @dacamp