Hey,
Was wondering if someone could help, as usual I think I might have
messed things up a bit. (Complete noob).
I’m on Leopard, ruby 1.8 gem 1.3.7.
The problem i’m having is whenever I use require ‘rubygems’ i get this
error:
weather.rb:1:in `require’: No such file to load – rubygems (LoadError)
from weather.rb:1
I decided to start messing around with ruby a while ago with zero
knowledge so I may have messed up the installation somehow, I saw
somewhere mentioned this problem if there are multiple copies of ruby
installed, not sure how to check or what to do though.
Any ideas?
Gerard Harte wrote:
Hey,
Was wondering if someone could help, as usual I think I might have
messed things up a bit. (Complete noob).
I’m on Leopard, ruby 1.8 gem 1.3.7.
The problem i’m having is whenever I use require ‘rubygems’ i get this
error:
weather.rb:1:in `require’: No such file to load – rubygems (LoadError)
from weather.rb:1
I decided to start messing around with ruby a while ago with zero
knowledge so I may have messed up the installation somehow, I saw
somewhere mentioned this problem if there are multiple copies of ruby
installed, not sure how to check or what to do though.
Any ideas?
all i can say mate is to load gems i use this sytax note tho im on
windows but should still work
require “rubygems”
require “your gem name here/import”
you must declare rubygems then the gem you wish to use
hope i helped you out
also you must dclare your gem in command prompt first
type gem install your gem name here -y
put the name of the gem in your gem name here
you must do this first for any gems you use
Mark K. wrote:
also you must dclare your gem in command prompt first
type gem install your gem name here -y
put the name of the gem in your gem name here
you must do this first for any gems you use
Hey, thanks. I did see somewhere about needing to require rubygems
before requiring the gem so I was doing that.
I got the problem sorted in the end, I think it was just a case of
installing it again properly. Anyway I used this tutorial
Dan Benjamin which worked perfectly.