# Require': No such file to load -- rubygems

**URL:** <https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems/188771>\
**Category:** Ruby\
**Created:** [May 18, 2010, 9:54am UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems/188771 "2010-05-18T09:54:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerry87](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@gerry87](https://www.ruby-forum.com/u/gerry87)\
**Post date:** [May 18, 2010, 9:54am UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems/188771/1 "2010-05-18T09:54:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![gerry87](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@gerry87](https://www.ruby-forum.com/u/gerry87)\
**Post date:** [May 18, 2010, 11:55am UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems/188771/2 "2010-05-18T11:55:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gerry87](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@gerry87](https://www.ruby-forum.com/u/gerry87)\
**Post date:** [May 18, 2010, 11:59am UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems/188771/3 "2010-05-18T11:59:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gerry87](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@gerry87](https://www.ruby-forum.com/u/gerry87)\
**Post date:** [May 18, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems/188771/4 "2010-05-18T16:35:59Z")

</div>

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](http://hivelogic.com/articles/ruby-rails-leopard) which worked perfectly.
