sublime ruby [Decode error - output not utf-8] 错误

今天用sublime3 写ruby,然后最简单的 pust "hello" 都出不来, ctrl + b的时候报错。注:win7下

[Decode error - output not utf-8]

[Finished in 0.2s with exit code 1]

[shell_cmd: ruby "C:\Users\Lucas\Desktop\1.rb"]

[dir: C:\Users\Lucas\Desktop]

[path: C:\Program Files\Common Files\NetSarang;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\PC Connectivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\MATLAB\R2010b\runtime\win32;C:\Program Files\MATLAB\R2010b\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\Program Files\Common File;C:\Program Files\Python27;]

然后一直以为是 编码的问题。一顿谷歌,发现各种不行,而且网上都是关于java的。

最后看到错误的里面,报了个path,然后就将ruby的bin文件夹路径加到了 环境变量中。

ctrl+b 就这么显示出来了。