Require problem with gem installed code on OS X

Discussion in 'Ruby' started by Peter Hickman, Aug 19, 2005.

  1. I have used gem to load flickr, which appears to have been loaded.

    However the only way I can get the requires to work is with this.

    ruby -I /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/ -I
    /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/ f.rb

    I have missed something here, but what is it?
     
    Peter Hickman, Aug 19, 2005
    #1
    1. Advertising

  2. Peter Hickman

    Jim Weirich Guest

    On Friday 19 August 2005 07:48 am, Peter Hickman wrote:
    > I have used gem to load flickr, which appears to have been loaded.
    >
    > However the only way I can get the requires to work is with this.
    >
    > ruby -I /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/ -I
    > /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/ f.rb
    >
    > I have missed something here, but what is it?


    Does this help?

    http://docs.rubygems.org/read/chapter/3#page70

    --
    -- Jim Weirich http://onestepback.org
    -----------------------------------------------------------------
    "Beware of bugs in the above code; I have only proved it correct,
    not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
     
    Jim Weirich, Aug 19, 2005
    #2
    1. Advertising

  3. Jim Weirich wrote:

    >On Friday 19 August 2005 07:48 am, Peter Hickman wrote:
    >
    >
    >>I have used gem to load flickr, which appears to have been loaded.
    >>
    >>However the only way I can get the requires to work is with this.
    >>
    >>ruby -I /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/ -I
    >>/usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/ f.rb
    >>
    >>I have missed something here, but what is it?
    >>
    >>

    >
    >Does this help?
    >
    > http://docs.rubygems.org/read/chapter/3#page70
    >
    >
    >

    Magic, all sorted.

    Thanks
     
    Peter Hickman, Aug 19, 2005
    #3
    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. Michael Glaesemann

    gem query finds gem, yet require fails

    Michael Glaesemann, Nov 12, 2006, in forum: Ruby
    Replies:
    5
    Views:
    168
    Michael Glaesemann
    Nov 26, 2006
  2. Austin 7873
    Replies:
    5
    Views:
    205
    Eric Hodel
    Jan 27, 2007
  3. Daniel Berger
    Replies:
    2
    Views:
    168
    Daniel Berger
    Sep 12, 2008
  4. Kenneth McDonald
    Replies:
    2
    Views:
    112
    Kenneth McDonald
    Sep 30, 2008
  5. Dennis Schmidt
    Replies:
    2
    Views:
    121
    Dennis Schmidt
    Jan 15, 2009
Loading...

Share This Page