/My/path bad interpreter: No such file or directory

时间:2016-08-31 17:30:47

标签: ruby jekyll

I just followed This Guide.

Installed Jekyll:

$ gem install jekyll
Successfully installed jekyll-3.2.1
Parsing documentation for jekyll-3.2.1
Done installing documentation for jekyll after 1 seconds
1 gem installed

But now when I try to run a command from prompt such as:

jekyll or jekyll --help. it gives that message:

bash: /g/Arquivos e Programas/Ruby23-x64/bin/jekyll: "G:/Arquivos: bad interpreter: No such file or directory

And if I go through that path, it has 2 files named Jekyll.
A normal file and a bash file.

What's wrong ?

1 个答案:

答案 0 :(得分:1)

没有准备好包含空格的路径。路径中的空格在Windows上很常见,但由于这个原因,在Unix上并不常见。

Bash尝试运行/g/Arquivos e Programas/Ruby23-x64/bin/jekyll,它解释为使用参数/g/Arquivose运行程序Programas/Ruby23-x64/bin/jekyll。它必须引用,例如,'/g/Arquivos e Programas/Ruby23-x64/bin/jekyll'或转义为/g/Arquivos\ e\ Programas/Ruby23-x64/bin/jekyll

的空格

简单的解决方法是将Ruby安装到一个没有空格的路径中。与G:\Ruby\一样。

正确的修复......好吧,可能会有一些TON的地方被一条带有空格的路径打破。 Report the bug to jekyll