压缩包解压保存到imx6ul/目录下
tar -xzvf gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf -C /home/cao/imx6ul
cd gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin
接着输入pwd
/home/cao/imx6ul/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin
接着将
export PATH=/home/cao/imx6ul/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin:$PATH
写入 /etc/bash.bashrc文件最后一行
保存后,在命令行输入source /etc/bash.bashrc使之生效
输入echo $PATH
/home/cao/imx6ul/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin:/usr/bin:/bin
表示生效