Problem importing ldap in irb.

W

Wayne Pierce

For some reason I can't 'require ldap' inside irb, I get an error that
ldap can't be found.

irb(main):001:0> require 'ldap'
LoadError: No such file to load -- ldap
from (irb):1:in `require'
from (irb):1

Anyone have an idea what is going wrong? I did a gem install of
activeldap and manually installed ruby-ldap, but those aren't working
either. I can load other modules, such as 'require socket' or
'require uri'. Every example I find online shows 'require ldap'
working.

Thanks for any suggestions,

Wayne
 
D

David Naseby

For some reason I can't 'require ldap' inside irb, I get an error that
ldap can't be found.

irb(main):001:0> require 'ldap'
LoadError: No such file to load -- ldap
from (irb):1:in `require'
from (irb):1

Anyone have an idea what is going wrong? I did a gem install of
activeldap and manually installed ruby-ldap, but those aren't working
either. I can load other modules, such as 'require socket' or
'require uri'. Every example I find online shows 'require ldap'
working.

Try
require 'rubygems'
require 'ldap'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top