开发者

Aptana Studio 3.0.4 Unable to find a Ruby executable with RVM

开发者 https://www.devze.com 2023-04-10 21:47 出处:网络
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

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 开发者_StackOverflow社区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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号