2013-03-06 63 views
0

我試圖運行從崇高文本2進行,但得到一個錯誤:崇高的文本沒有找到gcc編譯

make: arm-none-eabi-gcc: No such file or directory 

這隻能從崇高文本發生了,當我從終端運行,一切正常。

我已經與

export PATH="~/arm-cs-tools/bin:$PATH" 

設置.bash_profile中......但還是沒有能做到?我如何獲得ST解決$ PATH環境變量?

回答

1

unofficial Sublime Documentation

On some operating systems, the value for PATH will vary from a terminal window to a graphical application. Thus, even if the command you are using in your build system works in the command line, it may not work from Sublime Text. This is due to user profiles in shells.

To solve this issue, make sure you set the desired PATH so that graphical applications such as Sublime Text can find it. See the links below for more information.

Alternatively, you can use the path element in .sublime-build files to override the PATH > used to locate the executable specified in cmd. This new value for PATH will only be in effect for as long as your build system is running. After that, the old PATH will be restored.

注意的是,雖然這個文檔是V1和已過時,官方文檔引用這段話直接here

所以,你應該能夠在定義自定義路徑.sublime-build文件。使用path選項

+0

我最終編輯了Sublime Text中Makefile構建系統的.sublime-build文件。 – 2013-03-07 09:48:40