Require problem with gem installed code on OS X

(Peter Hickman) #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?

(Jim Weirich) #2

Does this help?

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

···

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?

--
-- Jim Weirich jim@weirichhouse.org 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)

(Peter Hickman) #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