今天用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 就這么顯示出來了。