Aptana Studio 3.0.4 无法使用 RVM 找到 Ruby 可执行文件
我刚刚在 Ubuntu 11.04 32 位上下载了 Aptana Studio 3.0.4。我一直在使用 RVM 进行 Ruby 和 Rails 开发。我将一个 Rails 项目导入到 Aptana 中并尝试运行它。但是当我这样做时,我从标题中得到错误: 无法找到 ruby 可执行文件。
当我打开终端视图时,它也没有通过 ruby -v 找到 ruby。我认为它在我的系统上使用 .bash_profile 文件正确配置。但是当我打开终端视图并使用“rvm use 1.9.2”,并尝试 ruby -v (确实有效)时,Aptana 仍然找不到它。
您知道是否有办法告诉 Aptana 使用 RVM 或在某处配置 Ruby 的路径?
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我们无法在终端视图中找到 ruby,则意味着路径设置不正确。听起来好像在运行“rvm use 1.9.2”后确实找到了它,这会让我认为 rvm 已设置,但没有默认的 ruby 设置。尝试运行“rvm use 1.9.2 --default”,重新启动 Studio,然后在终端视图中尝试“ruby -v”。
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.
您可以更改路径以使其正常工作。
Windows 开始菜单 ->电脑->属性(在上下文菜单中)->设置->高级->环境变量-> PATH
添加 ruby 可执行文件的路径。
我有同样的问题,我只是这样解决的。
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.