-
Notifications
You must be signed in to change notification settings - Fork 5
lylejohnson edited this page Sep 13, 2010
·
3 revisions
I’ve installed FXRuby but when I try to run any of the example programs I get a LoadError like this:
$ ruby hello.rb
hello.rb:3:in `require': no such file to load -- fox16 (LoadError)
from hello.rb:3Assuming the gem installation process didn’t report any errors, a likely explanation for this is that your RubyGems environment isn’t set up properly; this is discussed in section 3.4 of the RubyGems User Guide. For a quick test, try adding the -rubygems argument to the command line, e.g.
$ ruby -rubygems hello.rbto see if that fixes it. If it does, you might want to modify your environment settings to set the RUBYOPT environment variable to “-rubygems”. (Note that this step should no longer be necessary for Ruby 1.9, where RubyGems is better integrated.)