Problem loading a module

J

Jonas Galvez

I'll let the shell log do the talking:

# gem install geoip --remote
Attempting remote installation of 'geoip'
Successfully installed geoip-0.2.0
Installing RDoc documentation for geoip-0.2.0...

# irb --simple-promptLoadError: no such file to load -- geoip
from (irb):1:in `require'
from (irb):1

The file seems to be there:

# slocate geoip | grep rb$
/usr/lib/ruby/gems/1.8/gems/geoip-0.2.0/lib/geoip.rb

Any clues?

--Jonas Galvez
 
L

Logan Capaldo

I'll let the shell log do the talking:

# gem install geoip --remote
Attempting remote installation of 'geoip'
Successfully installed geoip-0.2.0
Installing RDoc documentation for geoip-0.2.0...

# irb --simple-prompt

LoadError: no such file to load -- geoip
from (irb):1:in `require'
from (irb):1



The file seems to be there:

# slocate geoip | grep rb$
/usr/lib/ruby/gems/1.8/gems/geoip-0.2.0/lib/geoip.rb

Any clues?

--Jonas Galvez

Is -rubygems in $RUBYOPT? if not you may want to put it there, either
that or do
require 'rubygems'
require 'geoip'
 

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
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top