# Rvm and macruby 0.6

**URL:** <https://www.ruby-forum.com/t/rvm-and-macruby-0-6/194564>\
**Category:** Ruby\
**Created:** [September 7, 2010, 8:35am UTC](https://www.ruby-forum.com/t/rvm-and-macruby-0-6/194564 "2010-09-07T08:35:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lirh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/839c29/32.png) [@lirh](https://www.ruby-forum.com/u/lirh)\
**Post date:** [September 7, 2010, 8:35am UTC](https://www.ruby-forum.com/t/rvm-and-macruby-0-6/194564/1 "2010-09-07T08:35:18Z")

</div>

Hi,

I installed macruby 0.6 through rvm, but irb gave the following error  
message:  
$ irb  
No such file or directory - open() failed (Errno::ENOENT)

In fact, this irb program is a bash script, which exec macirb in the  
end:  
$ cat irb  
#!/usr/bin/env bash

export GEM\_HOME="/Users/liruohao/.rvm/gems/macruby-0.6"  
export  
GEM\_PATH="/Users/liruohao/.rvm/gems/macruby-0.6:/Users/liruohao/.rvm/gems/macruby-0.6@global  
"  
export MY\_RUBY\_HOME="/Users/liruohao/.rvm/rubies/macruby-0.6"  
export  
PATH="/Users/liruohao/.rvm/gems/macruby-0.6/bin:/Users/liruohao/.rvm/gems/macruby-0.6@global  
/bin:/Users/liruohao/.rvm/rubies/macruby-0.6/bin:$PATH"

exec “/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/bin/macirb”  
“”  
“$@”

And if I remove the second string (which is empty) from the exec  
arguments,  
irb seems go quite well. Is this a bug or something (I’m not a bash guy,  
and  
don’t understand the exec statement with that empty string in the  
middle)?  
Thanks.
