主题 : GCC环境变量的删除? 复制链接 | 浏览器收藏 | 打印
大笑笑大
级别: 骑士
UID: 25314
精华: 8
发帖: 184
金钱: 1320 两
威望: 264 点
综合积分: 528 分
注册时间: 2010-07-22
最后登录: 2014-10-11
楼主  发表于: 2011-05-25 12:27

 GCC环境变量的删除?

[root@localhost arm-qtopia]# $PATH
bash: /usr/local/arm/4.3.2/bin:/usr/local/arm/4.3.2/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin: 没有那个文件或目录
[root@localhost arm-qtopia]# gedit /root/.bash
[root@localhost arm-qtopia]# gedit /root/.bash
.bash_history  .bash_logout   .bash_profile  .bashrc        
[root@localhost arm-qtopia]# gedit /root/.bashrc
[root@localhost arm-qtopia]# gedit /root/.bash_profile
[root@localhost arm-qtopia]# gedit /home/xphcyh/.bashrc
[root@localhost arm-qtopia]# gedit /home/xphcyh/.bash_profile
[root@localhost arm-qtopia]# gedit /etc/profile
[root@localhost arm-qtopia]# gedit /root/.bashrc
[root@localhost arm-qtopia]# gedit /root/.bash
通常GCC的环境变量时放在/root/.bashrc下面的。可是在/root/.bashrc和/etc/profile均没有找到!不知道当时自己是怎么加载上去的!!
有没有其他地方可以查找的?想把/usr/local/arm/4.3.2/bin的路径去掉,换成4.5.1的。谢谢

级别: 总版主
UID: 45585
精华: 3
发帖: 628
金钱: 3375 两
威望: 675 点
综合积分: 1316 分
注册时间: 2011-05-06
最后登录: 2018-10-18
1楼  发表于: 2011-05-25 14:09
要用root用户登录,
不知道你用的是不是fedora9
大笑笑大
级别: 骑士
UID: 25314
精华: 8
发帖: 184
金钱: 1320 两
威望: 264 点
综合积分: 528 分
注册时间: 2010-07-22
最后登录: 2014-10-11
2楼  发表于: 2011-05-25 15:44
是fedora9
也是用/root登陆