[問題] gcc install問題

看板Linux作者 (JAZZ)時間16年前 (2009/10/16 16:25), 編輯推噓1(104)
留言5則, 4人參與, 最新討論串1/2 (看更多)
我下載好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 還是出現一樣的問題 想請問要怎麼解決? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.23.14.190

10/16 16:27, , 1F
OS: CentOS
10/16 16:27, 1F

10/16 16:51, , 2F
yum install gcc 就行了吧
10/16 16:51, 2F

10/16 17:10, , 3F
樓上說得那個最好用
10/16 17:10, 3F

10/16 20:30, , 4F
可是...這臺電腦目前沒網路 = ="
10/16 20:30, 4F

10/19 18:49, , 5F
沒網路就從光碟片裏面抓gcc的套件直接裝吧 make太浪費時間了
10/19 18:49, 5F
文章代碼(AID): #1As2u72y (Linux)
文章代碼(AID): #1As2u72y (Linux)