aptana工作室终端设置在Windows上 [英] aptana studio terminal setup on windows
问题描述
我刚刚在rails上学习ruby并尝试将其配置为在Windows 7 x64和aptana studio上运行。
I'm just learning ruby on rails and try to configure it to work on windows 7 x64 and aptana studio.
我已经使用 rails installer 安装了ruby 1.9.2和命令正在使用常规的Windows命令行。
I've installed ruby 1.9.2 with rails installer and commands are working from the regular windows command line.
但是当我尝试使用aptana的终端窗口时,我收到以下错误:
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
解释器:没有这样的文件或目录
$ 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?
推荐答案
你是否安装了Git?我相信必须为工作室中的终端安装才能工作所以首先去:
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/ 然后点击 Git for Windows 。
完成步骤,一旦Gitbash可用,它可能会有效。如果没有,我也有其他想法。
Go through the steps and once Gitbash is available it may work. If not I have other ideas too.
更新
看看你的 bundle
命令试图去哪里,这真的是路线吗?我的是c:/ Ruby192 /等。尝试重新安装到该路线并从主网站(我知道,很奇怪)获取它专门用于Windows http:/ /rubyinstaller.org/downloads/ ,版本1.9.2-p290。不要得到1.9.3,Windows上的错误经常发生。我不得不经历这样的问题。然后确保你也安装了Devkit。所以你的步骤应该是
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 be
- Ruby安装
- Bundle和
- Devkit
我把我的Devkit放在C:/ Devkit上,我的Ruby是C:/ Ruby192。在安装Ruby时,Windows是一个很好的角色,完全删除所有内容并重新安装为我做了。既然如此,如果没有,我还有其他想法。
I 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.
这篇关于aptana工作室终端设置在Windows上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!