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. Advertisements

  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. Advertisements

  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. Advertisements

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. Daniel Berger

    Problem with building gem, require path

    Daniel Berger, Jun 4, 2005, in forum: Ruby
    Replies:
    1
    Views:
    257
    Stefan Achatz
    Jun 5, 2005
  2. basi
    Replies:
    6
    Views:
    216
  3. Michael Glaesemann

    gem query finds gem, yet require fails

    Michael Glaesemann, Nov 12, 2006, in forum: Ruby
    Replies:
    5
    Views:
    362
    Michael Glaesemann
    Nov 26, 2006
  4. Austin 7873
    Replies:
    5
    Views:
    420
    Eric Hodel
    Jan 27, 2007
  5. Daniel Berger
    Replies:
    2
    Views:
    281
    Daniel Berger
    Sep 12, 2008
  6. Kenneth McDonald
    Replies:
    2
    Views:
    172
    Kenneth McDonald
    Sep 30, 2008
  7. Dennis Schmidt
    Replies:
    2
    Views:
    175
    Dennis Schmidt
    Jan 15, 2009
  8. Bryan Richardson

    Execute Ruby code after Gem is installed

    Bryan Richardson, Jan 6, 2011, in forum: Ruby
    Replies:
    4
    Views:
    473
    Bryan Richardson
    Jan 7, 2011
Loading...