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

  

posted @ 2020-11-13 18:02  卷哭你  阅读(346)  评论(0编辑  收藏  举报