2014-06-20 1 views
7

GCC 4.9.0을 설치하려고하는데 './configure'및 'make'오류가 발생했습니다. GCC 설치 오류

은 내가 다음 오류 밖으로 완료 구성 ./configure --disable-multilib을 사용하여 다음 ./configure

checking for default BUILD_CONFIG... bootstrap-debug 
checking for --enable-vtable-verify... no 
/usr/bin/ld: crt1.o: No such file: No such file or directory 
collect2: ld returned 1 exit status 
configure: error: I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib. 

에 대해 다음 오류가 발생했습니다.

'make'이후;

checking for suffix of object files... configure: error: in `/root/dsk/gcc-4.9.0/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 `/root/dsk/gcc-4.9.0' 
make[1]: *** [stage1-bubble] Error 2 
make[1]: Leaving directory `/root/dsk/gcc-4.9.0' 
make: *** [all] Error 2 

당신이 GCC-multilib 누락 보인다

+0

는이 링크에 대한 조언을 다음과 같은 시도? config.log에 무엇이 있습니까? –

+0

소스 트리에 GCC를 빌드하지 마십시오. –

+0

상대 경로에서 빌드 한 후에도 같은 오류가 반복됩니다 ../configure – user3690763

답변

5

도와주세요 내가 오류를 다음과 같이 종료하고이 오류가 무엇인지 식별 ​​할 수 없습니다입니다.

sudo apt-get install gcc-multilib으로 설치를 시도한 다음 ./configure을 다시 실행하십시오.

를 CentOS를 들어
0

당신은 다음과 같은 라이브러리를 설치해야합니다 https://gcc.gnu.org/wiki/FAQ#configure_suffix :

sudo yum install glibc-devel.i686 
sudo yum install libgcc.i686