当我在Snow Leopard机器上安装Ruby-LDAP时,一切似乎都很顺利:
$ 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...但是当我运行依赖它的Ruby脚本时,我得到了这个错误:
in 'require': no such file to load -- ldap (LoadError)我还尝试了设置ARCHFLAGS,因为这样做似乎是MySQL gem在雪豹中正常运行所必需的:
$ sudo env ARCHFLAGS="-arch x86_64" gem install ruby-ldap不幸的是,这会产生完全相同的结果(或者没有)。
在这里,我如何让Ruby正确使用LDAP库?
发布于 2009-10-16 19:36:56
确保你
require 'rubygems'第一。
发布于 2010-08-26 09:40:31
gem install ruby-ldap
https://stackoverflow.com/questions/1579943
复制相似问题