未找到捆绑命令。糟糕的口译员 [英] Bundle command not found. Bad Interpreter

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

问题描述

我在使用捆绑软件gem时遇到了一些问题。



当我运行gem list时,我可以看到bundler已安装。 捆绑器(1.1.3,1.0.21)。然而,当我尝试运行命令bundle时,我收到以下消息:

  sh.exe:/ c / Program Files(x86)/ruby-1.9.3/bin/bundle:c:/ Program:坏的解释器:没有这样的文件或目录

我假设这是一些路径错误,但不管我有多少谷歌,我都无法找到解决方案我的问题。



任何人有任何提示?



以下是我的路径:

  C:\ Program Files(x86)\AMD APP\bin\x86_64; 
C:\程序文件(x86)\AMD APP\bin\x86;
C:\ Program Files \ Common Files \ Microsoft Shared \ Windows Live;
C:\程序文件(x86)\ Common Files \ Microsoft Shared \ Windows Live;
C:\ Program Files(x86)\NVIDIA Corporation\PhysX\ Common;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\程序文件(x86)\ATI Technologies\ATI.ACE\Core-Static;
C:\ Windows \ system32 \gs\gs8.71\bin;
C:\程序文件(x86)\ Windows Live \ Shared;
C:\DevKit\bin;
C:\程序文件(x86)\ Common Files \ Autodesk Shared \;
C:\ Program Files \ Common Files \Autodesk Shared \;
C:\程序文件\TortoiseSVN\bin;
C:\程序文件(x86)\ Autodesk \ Backburner \;
F:\程序文件(x86)\Mozart\bin;
C:\程序文件(x86)\ruby-1.9.3\lib\ruby\gems\1.9.1\gems\rails-3.0.9\bin;
C:\Ruby192\lib\ruby\gems\1.9.1\gems\rake-0.9.2\bin;
W:\wamp\bin\mysql\mysql5.5.16\lib;
F:\程序文件\MATLAB\R2011b\bin;
F:\程序文件(x86)\Heroku\bin;
C:\程序文件(x86)\ ruby​​-1.9.3 \ bin;
C:\程序文件(x86)\git\bin;
C:\ Program Files(x86)\git\cmd


解决方案

你看到的错误表明脚本内部的逻辑正在寻找C:\程序文件下的另一个项目......并且,出于某种原因,无论它寻找的是什么引号。

因此,它认为每个由空格分隔的路径是一个单独的参数。我的猜测是它试图从相应的PATH变量运行'ruby',所以:

  C:\程序文件x86)\ruby-1.9.3\bin\ruby 

这被解释为您正在调用

  C:\程序

加上参数Files和(x86)\ ruby​​-1.9.3\bin\ruby。你可以看到为什么这不起作用;)



我对你的环境不够了解,告诉你如何解决它,但是如果你添加了这些事情到你的PATH手动然后你应该围绕每一个引号,在这种情况下:

  C:\程序文件(x86 )\ruby-1.9.3\bin; 

会变成:

 C:\程序文件(x86)\ruby-1.9.3\bin; 


I am having some issues with the bundler gem.

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

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.

Anyone have any tips?

Here are my paths:

C:\Program Files (x86)\AMD APP\bin\x86_64;
C:\Program Files (x86)\AMD APP\bin\x86;
C:\Program Files\Common Files\Microsoft Shared\Windows Live;
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
%SystemRoot%\system32;
%SystemRoot%;    
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;
C:\Windows\system32\gs\gs8.71\bin;
C:\Program Files (x86)\Windows Live\Shared;
C:\DevKit\bin;
C:\Program Files (x86)\Common Files\Autodesk Shared\;
C:\Program Files\Common Files\Autodesk Shared\;
C:\Program Files\TortoiseSVN\bin;
C:\Program Files (x86)\Autodesk\Backburner\;
F:\Program Files (x86)\Mozart\bin;
C:\Program Files (x86)\ruby-1.9.3\lib\ruby\gems\1.9.1\gems\rails-3.0.9\bin;
C:\Ruby192\lib\ruby\gems\1.9.1\gems\rake-0.9.2\bin;
W:\wamp\bin\mysql\mysql5.5.16\lib;
F:\Program Files\MATLAB\R2011b\bin;
F:\Program Files (x86)\Heroku\bin;
C:\Program Files (x86)\ruby-1.9.3\bin;
C:\Program Files (x86)\git\bin;
C:\Program Files (x86)\git\cmd

解决方案

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.

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)\ruby-1.9.3\bin\ruby

which is interpreted as you calling

C:\Program

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

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)\ruby-1.9.3\bin;

would become:

"C:\Program Files (x86)\ruby-1.9.3\bin"; 

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

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