rvm and macruby 0.6

R

Ruohao Li

[Note: parts of this message were removed to make it a legal post.]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top