Windows 上的 aptana studio 终端设置
我正在学习 Ruby on Rails 并尝试将其配置为在 Windows 7 x64 和 aptana studio 上工作。
我已经使用 rails installer 安装了 ruby 1.9.2,并且命令可以从常规 Windows 命令行运行。
但是当我尝试使用 aptana 的终端窗口时,出现以下错误:
$ 捆绑 sh.exe": /c/RailsInstaller/Ruby1.9.2/bin/bundle: C:/Projects/railsinstaller/stage/Ruby1.9.2/bin/ruby.exe:坏 解释器:没有这样的文件或目录
如何使命令从终端运行?
I'm just learning ruby on rails and try to configure it to work on windows 7 x64 and aptana studio.
I've installed ruby 1.9.2 with rails installer and commands are working from the regular windows command line.
But when I'm trying to use aptana's terminal window I'm getting the following error:
$ bundle sh.exe": /c/RailsInstaller/Ruby1.9.2/bin/bundle:
C:/Projects/railsinstaller/stage/Ruby1.9.2/bin/ruby.exe: bad
interpreter: No such file or directory
How can I make commands to work from terminal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你安装了Git吗?我相信工作室中必须安装终端才能工作。因此,首先转到:
http://code.google.com/p/msysgit/ 并然后点击Windows 版 Git。
完成这些步骤,一旦 Gitbash 可用,它就可以工作了。如果没有的话我也有其他的想法。
更新
看看您的
bundle
命令试图到达的位置,这真的是路线吗?我的是c:/Ruby192/etc。尝试重新安装到该路线并从专门针对 Windows http:// /rubyinstaller.org/downloads/ ,版本 1.9.2-p290。不要使用 1.9.3,Windows 上的错误很常见。我也必须经历这样的问题。然后确保您也安装了 Devkit。所以你的步骤应该是我把我的 Devkit 放在 C:/Devkit 上,我的 Ruby 是 C:/Ruby192。 Windows 在安装 Ruby 时非常困难,完全删除所有内容并重新安装对我来说就完成了。既然那是做什么的,如果没有什么作用,我就有了其他的想法。
Do you have Git Installed? I believe that must be installed for the Terminal in the studio to work. So first go to:
http://code.google.com/p/msysgit/ and then click on Git for Windows.
Go through the steps and once Gitbash is available it may work. If not I have other ideas too.
UPDATE
Looking at where your
bundle
command is trying to get to, is that really the route? Mine is c:/Ruby192/etc. Try re-installing to that route and get it from the main website ( I know, weird) that is specifically for windows http://rubyinstaller.org/downloads/ , version 1.9.2-p290. Don't get 1.9.3, bugs on Windows are frequent. I had to go through issues like this too. Then make sure you install the Devkit also. So your steps should beI put my Devkit at C:/Devkit and my Ruby is C:/Ruby192. Windows is pretty corner when it comes to installing Ruby, A complete deleting of everything and re-installing did it for me. Since what that does, if nothing, I got other ideas.
我在 Windows 7 机器上遇到了同样的问题。
我尝试在系统设置中使用我的 ruby Path,但没有成功。我还使用了 Rails 安装程序。
您还可以使用免费编辑器“Redcar”或尝试“Sublime Text”。
I struggle the same problem on my Windows 7 machine.
I tried to play with my ruby Path in the system settings but I did not succeed. I also used the Railsinstaller.
You can also use the free Editor "Redcar" or try "Sublime Text".