Windows x64找不到捆绑命令 [英] Bundle command not found Windows x64

查看:122
本文介绍了Windows x64找不到捆绑命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚用Heroku Toolbelt安装了ruby,probem是当我进行捆绑安装时,它给了我这个错误:

I just installed ruby with the Heroku Toolbelt, probem is that when I do bundle install it gives me this error:

sh.exe": /c/Program Files (x86)/ruby-1.9.3/bin/bundle: "c:/Program: bad interpreter: No such file or directory

根据此问题找不到捆绑包命令。错误的解释器我应该更改PATH,但是我不知道该怎么做,我已经更改了Windows PATH环境变量,甚至更改为C:\ruby-1.9.2\bin,我得到了类似的错误:

Acording to this question Bundle command not found. Bad Interpreter I should change the PATH, but I dont know how to do this, I have changed windows PATH enviorment variable, even changed to C:\ruby-1.9.2\bin I get a similar error:

sh.exe": /c/ruby-1.9.3/bin/bundle: "c:/Program: bad interpreter: No such file or directory

当我尝试重新安装Toolbelt时,我将安装目录更改为c: \,但向导仍会在Program Files(x86)目录中安装git和ruby文件夹。

When I try to reinstall the Toolbelt I change the install direcotry to c:\ but still the wizard install git and ruby folders at Program Files (x86) directory.

有任何建议吗?

推荐答案

好了,我找到了解决方案,所以我在这里发布。
问题似乎是在Windows x64计算机上进行的Bunlder安装,为解决此问题,我做到了。

Well I found the solution, so I'm posting here. Problem seems to be the bunlder installation in windows x64 machines, to solve this I did this.

将以下目录复制到C:/

Copy the following directories to C:/


C:\Program Files (x86)\Heroku

C:\Program Files (x86)\Git

C:\Program Files (x86)\ruby-1.9.2


更改Windows环境的路径变量,要右键单击计算机>属性>高级设置>环境变量。路径在系统变量部分下。将它们编辑为:

Change windows environment "Path" variable, to do this right click Computer > Properties > Advance Settings > environment variables. Path is under "System Variables" section. Edit them to this:


C:\Heroku\bin; C:\ruby-1.9.2\bin; C :\git\bin; C:\git\cmd

C:\Heroku\bin;C:\ruby-1.9.2\bin;C:\git\bin;C:\git\cmd

转到C:\ruby-1.9.2 \bin并用记事本打开 bunlde文件(不是bundle.bat),从#!更改第一行! c:/ Program Files(x86)/ruby-1.9.2/ bin / ruby​​.exe ## !#!c:/ruby-1.9.2/bin/ruby.exe ##

Go to C:\ruby-1.9.2\bin and open the "bunlde" file with note pad (not the bundle.bat), change the first line from #!"c:/Program Files (x86)/ruby-1.9.2/bin/ruby.exe"## to !#!c:/ruby-1.9.2/bin/ruby.exe##

现在转到C:\Git并更改Git Bash直接访问的属性(右键单击>属性),然后将目标从 C更改为:\Windows\SysWOW64\cmd.exe / c C:\程序文件(x86)\Git\bin\sh.exe --login -i C:\Windows\SysWOW64\cmd.exe / c C:\Git\bin\sh.exe --login -i

Now go to C:\Git and change the properties (right click > properties) of the Git Bash direct access, and change the target from C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i" to C:\Windows\SysWOW64\cmd.exe /c ""C:\Git\bin\sh.exe" --login -i"

希望对别人有帮助

这篇关于Windows x64找不到捆绑命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆