Problem loading a module

Discussion in 'Ruby' started by Jonas Galvez, Jun 29, 2005.

  1. Jonas Galvez

    Jonas Galvez Guest

    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
     
    Jonas Galvez, Jun 29, 2005
    #1
    1. Advertising

  2. 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'
     
    Logan Capaldo, Jun 29, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Maric Michaud
    Replies:
    0
    Views:
    7,203
    Maric Michaud
    Jun 24, 2006
  2. David Segall
    Replies:
    2
    Views:
    452
    Thomas Kellerer
    Jan 2, 2007
  3. Vito Corleone

    Loading module in another module

    Vito Corleone, Jan 10, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    137
    Shawn Corey
    Jan 10, 2005
  4. Replies:
    4
    Views:
    325
  5. edfialk
    Replies:
    0
    Views:
    194
    edfialk
    May 10, 2007
Loading...

Share This Page