linux 添加环境变量
添加环境变量: (1)找到编译链包,get xxx/bin/路径 (2)临时测试: export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf- export PATH=$PATH:xxx/bin/路径 source ~/.bashrc arm-* arm-linux-gnueabihf-gcc -v (3)永久添加: vim ~/.bashrc export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf- export PATH=$PATH:xxx/bin/路径 source ~/.bashrc
一勤天下无难事。