# RUBYLIB environment variable?

**URL:** <https://www.ruby-forum.com/t/rubylib-environment-variable/166161>\
**Category:** IronRuby\
**Created:** [April 22, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/rubylib-environment-variable/166161 "2009-04-22T13:10:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_SSTownley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Post date:** [April 22, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/rubylib-environment-variable/166161/1 "2009-04-22T13:10:14Z")

</div>

Hi,

I did some Googling, but I didn’t see anything about this particular  
issue. It seems that IronRuby (the latest release from rubyforge)  
ignores the RUBYLIB environment variable, leaving $: set to the default.

The only way to add local paths seems to be to use the -I command line  
arguments. While this works, I’m surprised that RUBYLIB isn’t  
supported. I was pleasantly surprised when I installed JRuby and fired  
it up to test things and noticed that I didn’t have to do anything  
different than in MRE to have it find files.

I didn’t see any issues about this on CodePlex, but I wanted to check  
before I entered one.

Cheers,

## ast

Andrew S. Townley [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://atownley.org](http://atownley.org)

---

<div class="post-metadata">

**Author:** ![Andrew\_SSTownley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Post date:** [April 22, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/rubylib-environment-variable/166161/2 "2009-04-22T14:56:02Z")

</div>

2009/4/22 Andrew S. Townley [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> The only way to add local paths seems to be to use the -I command line  
> arguments. Â While this works, I’m surprised that RUBYLIB isn’t  
> supported. Â I was pleasantly surprised when I installed JRuby and fired  
> it up to test things and noticed that I didn’t have to do anything  
> different than in MRE to have it find files.

IronRuby is not as mature as JRuby.

> I didn’t see any issues about this on CodePlex, but I wanted to check  
> before I entered one.

Please enter one!

---

<div class="post-metadata">

**Author:** ![Andrew\_SSTownley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Post date:** [April 22, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/rubylib-environment-variable/166161/3 "2009-04-22T16:59:52Z")

</div>

On Wed, 2009-04-22 at 21:55 +0900, Seo S. wrote:

> 2009/4/22 Andrew S. Townley [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > The only way to add local paths seems to be to use the -I command line  
> > arguments. While this works, I’m surprised that RUBYLIB isn’t  
> > supported. I was pleasantly surprised when I installed JRuby and fired  
> > it up to test things and noticed that I didn’t have to do anything  
> > different than in MRE to have it find files.
> 
> IronRuby is not as mature as JRuby.

Yeah, I know… 🙂 Still, this is one of the main features that I use  
when doing local development so I don’t have to remember/retype long  
command lines when I’m experimenting or running commands.

> > I didn’t see any issues about this on CodePlex, but I wanted to check  
> > before I entered one.
> 
> Please enter one!

Done. [http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=718](http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=718)

Cheers,

## ast

Andrew S. Townley [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://atownley.org](http://atownley.org)
