没有这样的文件或目录:'arm-none-eabi-gcc' 尝试为 STM32 制作 micropython 时出错

No such file or directory: 'arm-none-eabi-gcc' error trying to make micropython for STM32

我正在关注 documentation 构建 micropython

cd mpy-cross
make

然后安装 GNU Arm Embedded Toolchain,因为我正在使用 Mac 和 OSX。然后我继续

cd ../ports/stm32
make submodules
make

出现错误

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build-PYBV10/genhdr
GEN build-PYBV10/genhdr/pins.h
GEN stmconst build-PYBV10/modstm_qstr.h
GEN build-PYBV10/genhdr/pybcdc.inf
GEN build-PYBV10/genhdr/pybcdc_inf.h
GEN build-PYBV10/genhdr/pllfreqtable.h
GEN build-PYBV10/genhdr/mpversion.h
GEN build-PYBV10/genhdr/moduledefs.h
GEN build-PYBV10/genhdr/qstr.i.last
Traceback (most recent call last):
  File "../../py/makeqstrdefs.py", line 188, in <module>
    preprocess()
  File "../../py/makeqstrdefs.py", line 62, in preprocess
    for output in p.imap(pp(flags), chunks):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 748, in next
    raise value
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "../../py/makeqstrdefs.py", line 46, in run
    return subprocess.check_output(args.pp + flags + files)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'arm-none-eabi-gcc': 'arm-none-eabi-gcc'
make: *** [build-PYBV10/genhdr/qstr.i.last] Error 1
make: *** Deleting file `build-PYBV10/genhdr/qstr.i.last'

我查看了 GNU Arm 嵌入式工具链的文档,但似乎没有漏掉任何一步。我错过了什么?

出于某种原因,安装程序没有将二进制文件放入我的路径中。我用

解决了这个问题
export PATH="/Applications/ARM/bin:$PATH"

然后能够 运行 make 没有错误。