gcc install問題 - Linux

Table of Contents

我下載好gcc後

./configure --prefix=/usr/local/gcc
後出現
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /opt/gcc-3.3.5 using "mt-frag"
/tmp/cNf25493/cNf25493.pos: line 8: /usr/local/gcc:
*** The command '/usr/local/gcc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

google了一下 好像是CC path 問題
有試過export CC=/usr/local
再./configure --prefix=/usr/local/gcc
還是出現一樣的問題

想請問要怎麼解決?
謝謝

--

All Comments

Rosalind avatarRosalind2009-10-21
OS: CentOS
Hedy avatarHedy2009-10-26
yum install gcc 就行了吧
James avatarJames2009-10-29
樓上說得那個最好用
Steve avatarSteve2009-11-03
可是...這臺電腦目前沒網路 = ="
Freda avatarFreda2009-11-07
沒網路就從光碟片裏面抓gcc的套件直接裝吧 make太浪費時間了