Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Problem loading a module

Reply
Thread Tools

Problem loading a module

 
 
Jonas Galvez
Guest
Posts: n/a
 
      06-29-2005
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
>> require 'geoip'

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



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


 
Reply With Quote
 
 
 
 
Logan Capaldo
Guest
Posts: n/a
 
      06-29-2005

On Jun 28, 2005, at 9:32 PM, Jonas Galvez wrote:

> 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
>
>>> require 'geoip'
>>>

> 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'




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Module loading problem Mikail Dellovich C Programming 3 03-23-2007 11:40 PM
Re: module docstring, documentation,anything? please note is the module type/object NOT some module Maric Michaud Python 0 06-24-2006 12:42 PM
Problem Dynamic Loading Linux C++ .so module using python2.4 liam_herron Python 1 04-10-2006 07:52 PM
Loading module in another module Vito Corleone Perl Misc 3 01-10-2005 01:15 PM
Sorry, again: Module Loading Problem fowlertrainer@anonym.hu Python 0 01-05-2004 04:03 PM



Advertisments