[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby: no such file to load -- ubygems (LoadError

coachhilton

3/3/2006 5:38:00 PM

Greetings,

After having used Ruby for some time, first on Windows and Linux, my
colleague and I together decided to upgrade our WinXP systems to Ruby
1.8.4. He used the Window's installer version while I decided to build
my own. Coincidentally, we're both getting the same error when trying
to test our installation w/a simple helloworld.rb applet.

> ruby
> p "test"

upon hitting enter and BEFORE I end the file for ruby to process the
stdin, we get the following error:

ruby: no such file to load -- ubygems (LoadError)

irb runs just fine, btw. Any idea what's wrong here?

Thx,

Ken

2 Answers

Caleb Tennis

3/3/2006 6:25:00 PM

0


> ruby: no such file to load -- ubygems (LoadError)

It sounds like your RUBYOPT environment variable is set to "-rubygems", to
load gems, but you don't have rubygems installed.

You should be able to either install gems, or unset that variable.

Caleb



coachhilton

3/3/2006 6:39:00 PM

0

That did the trick! Thanks Caleb!

Ken