开发者

Ruby-LDAP and Snow Leopard

开发者 https://www.devze.com 2022-12-08 13:28 出处:网络
When I install Ruby-LDAP on my Snow Leopard box, all appears to go well: $ sudo gem install ruby-ldap Building native extensions.This could take a while...

When I install Ruby-LDAP on my Snow Leopard box, all appears to go well:

$ sudo gem install ruby-ldap
Building native extensions.  This could take a while...
Successfully installed ruby-ldap-0.9.9
1 gem installed
Installing ri documentation for ruby-ldap-0.9.9...
Installing RDoc documentation for ruby-ldap-0.9.9...

But when I run the Ruby script that relies on it, I get this error:

in 'require': no such file to load -- ldap (LoadError)

I also tried setting ARCHFLAGS, since doing so appears to be required for the MySQL gem to function correctly in Snow Leopard:

$ sudo env ARCHFLAGS="-arch x86_6开发者_StackOverflow中文版4" gem install ruby-ldap

Unfortunately, this produces exactly the same results (or lack thereof).

How do I get Ruby to work with the LDAP libraries correctly here?


Make sure you

require 'rubygems'

first.


gem install ruby-ldap

0

精彩评论

暂无评论...
验证码 换一张
取 消