2013-01-12 39 views
0

安裝GCC4.7時出現問題。請幫我解決這個錯誤。 http://solarianprogrammer.com/2012/04/13/building-gcc-4-7-on-ubuntu-12-04/ 我試圖按照上述網站中的那些命令來安裝GCC4.7。 gcc的先決條件安裝正確,當我試圖在安裝GCC期間調用「make」時,我收到以下錯誤。安裝GCC4.7時無法運行C編譯的程序

checking for C compiler default output file name... a.out 
checking whether the C compiler works... configure: error: in `/home/priya/OS_HW1/gcc-4.7/build/x86_64-linux-gnu/libgomp': 
configure: error: cannot run C compiled programs. 
If you meant to cross compile, use `--host'. 
See `config.log' for more details. 
make[2]: *** [configure-stage1-target-libgomp] Error 1 
make[2]: Leaving directory `/home/priya/OS_HW1/gcc-4.7/build' 
make[1]: *** [stage1-bubble] Error 2 
make[1]: Leaving directory `/home/priya/OS_HW1/gcc-4.7/build' 
make: *** [all] Error 2 

回答

0

安裝似乎打破。嘗試

sudo apt-get install libgomp1 
sudo apt-get install gcc-4.7-base