2013-01-12 2 views
0

GCC4.7을 설치하는 동안 문제가 있습니다. 이 오류를 해결하도록 도와주세요. http://solarianprogrammer.com/2012/04/13/building-gcc-4-7-on-ubuntu-12-04/ 위의 사이트에서 이러한 명령을 수행하여 GCC4.7을 설치하려고했습니다. gcc의 prerequistes가 올바르게 설치되었습니다. 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 
관련 문제