我的系统是Red Flag 4.0桌面版。我以前没接解过linux,现在想安装一个C编译器,今天从网上下了一个GCC3.0,按照上面的方法一步步做,
1、cp gcc-3.0.tar.bz2 /usr/local
2、cd /usr/local
3、bunzip2 gcc-3.0.tar.bz2
4、tar xvf gcc-3.0
5、../gcc-3.0/configure
6、make
7、make install
当执行到第5目步时,报:
Configuring fo a i686-pc-linux-gnuoldld host.
Created "Makefile" in /usr/local/gcc-3.0 using "mt-frag"
./configure: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.