# Help with Leopard

**URL:** <https://www.ruby-forum.com/t/help-with-leopard/119760>\
**Category:** Ruby\
**Created:** [November 10, 2007, 4:44am UTC](https://www.ruby-forum.com/t/help-with-leopard/119760 "2007-11-10T04:44:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sthorpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e36b37/32.png) [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Post date:** [November 10, 2007, 4:44am UTC](https://www.ruby-forum.com/t/help-with-leopard/119760/1 "2007-11-10T04:44:01Z")

</div>

I am sure this is a basic question but I am having a problem with ruby  
in leopard. I have installed the gem ar-extensions without any issue.  
When I run require ‘ar-extensions’ from irb it works fine…but when I  
write an .rb file with the same line under homeUser/apps/ruby i get the  
“no such file to load” error. I think I have a basic misunderstanding  
about how ruby commands are interpreted in the mac os…

any help would be awesome.

---

<div class="post-metadata">

**Author:** ![sthorpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e36b37/32.png) [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Post date:** [November 10, 2007, 6:18am UTC](https://www.ruby-forum.com/t/help-with-leopard/119760/2 "2007-11-10T06:18:39Z")

</div>

Did you do

require ‘rubygems’

before require-ing your gem in the script? irb in Leopard requires  
rubygems for you (see /etc/irbrc).

---

<div class="post-metadata">

**Author:** ![sthorpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e36b37/32.png) [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Post date:** [November 10, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/help-with-leopard/119760/3 "2007-11-10T16:41:46Z")

</div>

lists wrote:

> Did you do
> 
> require ‘rubygems’
> 
> before require-ing your gem in the script? irb in Leopard requires  
> rubygems for you (see /etc/irbrc).

That did the trick. Thanks. I’ve been coding in ruby for about a year  
on the pc and never had to add this line to any of my scripts. Why is  
that?

---

<div class="post-metadata">

**Author:** ![sthorpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e36b37/32.png) [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Post date:** [November 10, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/help-with-leopard/119760/4 "2007-11-10T20:01:51Z")

</div>

Most Windows implementations I’ve seen automatically add the rubygems  
require to the RUBYOPTS environment variable.

Matt
