在帖子“可能是LINUX下编程最低级的问题 ”说的比较乱,可能没有说清楚问题!
再问
我系统装的是RED HAT 9
安装的时候选了完全安装,已经有GCC呢
我现在开发基于方舟CPU做项目
在arca目录下安装了方舟提供的交叉编译环境
按照说明文件设置了下面的
Set the libraries path:
$ cd arca
$ ./bin-set
$ cd -
Set the environment variable GCC_EXEC_PREFIX?
export GCC_EXEC_PREFIX=/ARCA/arca-cc/arca/lib/gcc-lib/
Set the PATH
export PATH=$PATH:/ARCA/arca-cc/arca/bin
方舟的编译环境要求编译程序时用arca-gcc -o test test.c即用arca-gcc替代gcc
问题:
1、我用arca-gcc的时候,提示bash: arca-gcc : command not found ,什么问题?
2、这样export设置environment variable和PATH以及Set the libraries path,重起开机会不会丢失,如果是有什么办法可以写入某个文件,可以下次用arca-gcc还有效
谢谢各位高手热心人,特别是斑竹老大 !!
Dragonfly老大thank you very much!
用绝对路径可以行的通:-)
"if you still want to set the path. check u shell profile. which shell u use? bash? "
yes
BTW .bash_profile 具体在哪个目录下?