1.追加路径到ENVNAME
setenv ENVNAME routine: $ENVNAME
eg: setenv LD_LIBRARY_PATH /usr1/arbor/src/lib:$LD_LIBRARY_PATH
单独查看PATH环境变量,可用: [[email protected] u-boot-sh4]#echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 添加PATH环境变量,可用: [[email protected] u-boot-sh4]#setenv PATH=/opt/STM/STLinux-2.3/devkit/sh4/bin:$PATH 再次查看: [[email protected] u-boot-sh4]# echo $PATH /opt/STM/STLinux-2.3/devkit/sh4/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 说明添加PATH成功。
参考:
1. linux下查看和添加PATH环境变量 http://blog.sina.com.cn/s/blog_688077cf01013qrk.html
时间: 2024-10-11 04:02:50