Fernando Briano
Fernando Briano

Reputation: 7768

Aptana Studio 3.0.4 Unable to find a Ruby executable with RVM

I just downloaded Aptana Studio 3.0.4 on Ubuntu 11.04 32 bits. I've been using RVM for Ruby and Rails development. I imported a rails project into Aptana and tried to run it. But when I do, I get the error from the title: Unable to find a ruby executable.

When I open the Terminal view, it doesn't find ruby with ruby -v either. I think it's correctly configured on my system with the .bash_profile file. But when I open the Terminal view and use "rvm use 1.9.2", and try ruby -v (which does work), Aptana still doesn't find it.

Do you know if there's a way to tell Aptana to use RVM or configure the path to Ruby somewhere?

Thanks in advance.

Upvotes: 2

Views: 7798

Answers (2)

Bernard Finucane
Bernard Finucane

Reputation: 89

You can change the path to make it work.

Windows Start Menu -> Computer -> Properties (in the context menu) -> Settings -> Advanced -> Environment variables -> PATH

Add the path of your ruby executable.

I had the same problem, and I just solved it this way.

Upvotes: 1

Christopher Williams
Christopher Williams

Reputation: 2907

If we're unable to find ruby inside our Terminal view, it means that somehow the path isn't set up properly. It sounds like it does find it after you run "rvm use 1.9.2", which would lead me to think that rvm is set up, but there's no default ruby set. Try running "rvm use 1.9.2 --default", restart Studio and then try "ruby -v" in the Terminal view.

Upvotes: 2

Related Questions