irb can see the gem but ruby can't

P

peter

Hey all,

I am not sure if this is a Leopard on Ruby problem or some other quirk (or
maybe I am just horribly overlooking something) but...:

Macintosh:manav mbp$ irbrequire 'yahoofinance'
Macintosh:manav mbp$ ruby yahoo_test.rb
yahoo_test.rb:1:in `require': no such file to load -- yahoofinance
(LoadError)
from yahoo_test.rb:1

i.e. irb can see the gem but ruby can't...
Any ideas?

Cheers,
Peter
 
R

Ryan Davis

I am not sure if this is a Leopard on Ruby problem or some other
quirk (or
maybe I am just horribly overlooking something) but...:

Macintosh:manav mbp$ irb
require 'yahoofinance'
Macintosh:manav mbp$ ruby yahoo_test.rb
yahoo_test.rb:1:in `require': no such file to load -- yahoofinance
(LoadError)
from yahoo_test.rb:1

i.e. irb can see the gem but ruby can't...
Any ideas?

your ~/.irbrc has:

require "rubygems"
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top