无法在 Aptana 中运行 ruby hello world 应用程序
我刚刚安装了最新版本的 Aptana。
然后,我尝试创建一个项目,驻留在 C:\Users\User\My Documents\Aptana Studio 3 Workspace\abc
中,仅包含一个 main.rb
文件包含以下内容:
puts "hello world"
当尝试运行它时,它会输出以下消息:
c:\Ruby192\bin\rubyw.EXE: 没有这样的文件或目录 -- 用户/应用程序数据/本地/Aptana(加载错误)
c:\Ruby192\bin\rubyw.EXE
文件名似乎正确。查看配置选项时,要运行的文件的完整文件名似乎也是正确的。
我尝试将 main.rb
复制到 C:\
,乍一看,问题可能与空格有关,但即使如此,错误仍然存在保持不变!
我想知道可能是什么问题?
Possible Duplicate:
Can't run a ruby hello world application in Aptana
I've just installed the latest version of Aptana.
I've then tried to create a project, residing in C:\Users\User\My Documents\Aptana Studio 3 Workspace\abc
that only contains a single main.rb
file with the following contents:
puts "hello world"
When trying to run it, it spits out the following message:
c:\Ruby192\bin\rubyw.EXE: No such file or directory --
User/AppData/Local/Aptana (LoadError)
The c:\Ruby192\bin\rubyw.EXE
file name seems correct. When looking in the configuration options, the full filename of the file to be run also seems correct.
I've tried to copy the main.rb
to C:\
, as it looked at first glance as the problem could be related with white spaces, but even then the error remains the same!
I wonder what the problem might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道这是否可以解决这个问题,但是
I don't know if this will fix it, but Max gave the following answer to a similar problem I had asked about:
尝试将
C:\Ruby192\bin
添加到您的 PATH 环境变量中。看看它是如何工作的。Try adding
C:\Ruby192\bin
to your PATH environment variable. See how that works.