gcc 編譯安裝 - Linux

Suhail Hany avatar
By Suhail Hany
at 2011-02-25T22:11

Table of Contents

在編譯 gcc-4.5.2 的過程中,出現下列錯誤訊息

checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /usr1/wzlu/download/gcc/gccobj/./gcc/xgcc -B/usr1/wzlu/download/gcc/gccobj/./gcc/ -B/usr1/wzlu/gcc/x86_64-unknown-linux-gnu/bin/ -B/usr1/wzlu/gcc/x86_64-unknown-linux-gnu/lib/ -isystem /usr1/wzlu/gcc/x86_64-unknown-linux-gnu/include -isystem /usr1/wzlu/gcc/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/usr1/wzlu/download/gcc/gccobj/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/usr1/wzlu/download/gcc/gccobj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr1/wzlu/download/gcc/gccobj'
make: *** [all] Error 2

依照說明文件的指示 另開一個新目錄進行編譯
而不在 source code 的目錄中編譯 應該就能避免出現上面的錯誤

但依照指示做了 仍出現上述的錯誤
請問 還有其他建議嘛 謝謝

--
Tags: Linux

All Comments

Olive avatar
By Olive
at 2011-02-28T12:25
請去看 config.log 的錯誤訊息有啥然後再貼上來吧
Ina avatar
By Ina
at 2011-02-28T21:19
記得連 configure 的參數一起貼
Joe avatar
By Joe
at 2011-03-03T22:39
找到原因了,gmp mpc mpfr的lib include path放到configure中

apache的virtual host設定

Anonymous avatar
By Anonymous
at 2011-02-24T22:16
小弟是用redhat5.5跟centos5.5 練習apache架設name base virtual host 小弟有兩個網址 www.cy.chang web.cy.chang 都是用同一組ip 原本的 /var/www/html 網頁便是www.cy.chang 另一台的DNS也是設定ww ...

shell script輸出結果 存至 變數

Elizabeth avatar
By Elizabeth
at 2011-02-24T15:43
如標題 cat file.txt 要怎樣把他顯示的結果存到變數?? 謝謝 - ...

sever接收client檔案

Steve avatar
By Steve
at 2011-02-24T09:11
想請問一下 這該用啥關鍵字找 想用C寫一個檔案 可以讓server複製client端檔案(就是上傳) 在client不開任何網路服務下 server該如何知道對方檔案路徑並複製到server呢 (已知ip用getenv(and#34;REMOTE_ADDRand#34;)可取得) 該用哪個關鍵字或哪個方向找資 ...

請問網路介面 連線狀態

Odelette avatar
By Odelette
at 2011-02-24T01:30
請問 linux下面有function call可以查看目前目前系統是透過什麼介面連線 或是查看連線狀態嗎 我只知道command下面的指令 那如果程式裡面想要得到目前的網路線線狀態 還有目前的連線介面的話 系統有什麼function call可以用嗎 atat - ...

apt-get的安裝死結

Cara avatar
By Cara
at 2011-02-23T23:18
各位先進, 小弟在Amazon EC2 Micro instance + Ubuntu 10.04使用apt-get時會出現下列訊息: E: dpkg was interrupted, you must manually run and#39;sudo dpkg --configure -aand#39; ...