解决make: arm-linux-gnueabihf-gcc: Command not found

  • arm-linux-gnueabihf-gcc 环境变量没有设,找不到编译器。或者是没有同步更新。
    • 在/etc/profile里添加arm-linux-gcc的存放路径
      • 使用命令vi /etc/profile 在文件最后加export PATH=$PATH:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin,即当前编译器的保存路径。
      • 使用命令source /etc/profile 同步;
    • 如已配置过环境变量,直接命令source /etc/profile 同步即可。

你可能感兴趣的:(linux,makefile,linux)