2013-03-06 2 views
0

Я пытаюсь запустить сделать из Sublime Text 2, но получаю сообщение об ошибке:Sublime Text не найти компилятор GCC

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

Это происходит только из Sublime Text, когда я бегу от терминала, все работает отлично.

У меня нет установки .bash_profile с

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

... но до сих пор не может сделать? Как я могу заставить 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 file. используя опцию path

+0

Я закончил редактирование файла .sublime-build для системы сборки Makefile в Sublime Text. –

Смежные вопросы