找不到捆绑命令.糟糕的翻译 [英] Bundle command not found. Bad Interpreter

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

问题描述

我在使用 bundler gem 时遇到了一些问题.

I am having some issues with the bundler gem.

当我运行gem list"时,我可以看到捆绑器已安装.捆绑器(1.1.3、1.0.21)".

When I run "gem list" I can see that bundler is installed. "bundler (1.1.3, 1.0.21)".

但是,当我尝试运行命令bundle"时,我收到以下消息:

However, when I try to run the command "bundle" I get the following message:

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

我认为这是一些路径错误,但无论我如何谷歌,我都无法找到解决问题的方法.

I assume that this is some path errors, but no matter how much I google, I am not able to find a solution to my problem.

有人有什么建议吗?

这是我的路径:

C:Program Files (x86)AMD APPinx86_64;
C:Program Files (x86)AMD APPinx86;
C:Program FilesCommon FilesMicrosoft SharedWindows Live;
C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;
C:Program Files (x86)NVIDIA CorporationPhysXCommon;
%SystemRoot%system32;
%SystemRoot%;    
%SystemRoot%System32Wbem;
%SYSTEMROOT%System32WindowsPowerShellv1.0;
C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;
C:Windowssystem32gsgs8.71in;
C:Program Files (x86)Windows LiveShared;
C:DevKitin;
C:Program Files (x86)Common FilesAutodesk Shared;
C:Program FilesCommon FilesAutodesk Shared;
C:Program FilesTortoiseSVNin;
C:Program Files (x86)AutodeskBackburner;
F:Program Files (x86)Mozartin;
C:Program Files (x86)
uby-1.9.3lib
ubygems1.9.1gems
ails-3.0.9in;
C:Ruby192lib
ubygems1.9.1gems
ake-0.9.2in;
W:wampinmysqlmysql5.5.16lib;
F:Program FilesMATLABR2011bin;
F:Program Files (x86)Herokuin;
C:Program Files (x86)
uby-1.9.3in;
C:Program Files (x86)gitin;
C:Program Files (x86)gitcmd

推荐答案

您看到的错误表明脚本内部的逻辑正在 C:Program Files... 下寻找另一个项目...并且,由于某种原因,它正在寻找的任何东西都没有被引号包围.

The error you're seeing indicates that the logic inside the script is looking for another item under C:Program Files... and, for some reason, whatever it's looking for was not surrounded by quotes.

因此,它认为由空格分隔的每一段路径都是一个单独的参数.我的猜测是它试图从适当的 PATH 变量运行ruby",所以:

So, it thinks each piece of that path that's separated by a space is a separate argument. My guess is that it's trying to run 'ruby' from the appropriate PATH variable, so:

C:Program Files (x86)
uby-1.9.3in
uby

这被解释为你调用

C:Program

使用参数文件"和(x86) uby-1.9.3in uby".你可以看到为什么那行不通;-)

with the arguments "Files" and "(x86) uby-1.9.3in uby". You can see why that wouldn't work ;-)

我对您的环境知之甚少,无法告诉您如何修复它,但如果您手动将这些内容添加到 PATH 中,那么您应该用引号将每个内容括起来,在这种情况下:

I don't know enough about your environment to tell you how to fix it, but if you are adding these things to your PATH manually then you should surround each one in quotes, in which case:

C:Program Files (x86)
uby-1.9.3in;

会变成:

"C:Program Files (x86)
uby-1.9.3in"; 

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

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