2015-01-08 15 views
0

RHEL 6에 gcc 4.7.2를 설치하려고했습니다. here에서 tar.gz 아카이브를 다운로드하고 다음 단계를 수행했습니다. 내가 을 실행하고 있습니다 때마다Rhel 6에서 gcc-4.7.2 설치가 실패합니다.

tar zxvf gcc-4.7.2.tar.gz 
cd gcc-4.7.2 
./configure --prefix=/usr/local/gcc-4.7.2/ --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-tune=generic --with-gmp=/usr/local/gimp-4.3.2/ --with-mpfr=/usr/local/mpfr-2.4.2/ --with-mpc=/usr/local/mpc-0.8.1/ --with-ppl=/usr/local/ppl-0.11 --with-cloog=/usr/local/cloog-ppl-0.15/ 
make 

, 그것은 오류 다음 던지고있다 :

cp ../.././gcc/../fixincludes/README-fixinc include-fixed/README 
chmod a+r include-fixed/README 
echo timestamp > stmp-int-hdrs 
make[3]: Leaving directory `/temp/gcc-4.7.2/host-x86_64-redhat-linux/gcc' 
Checking multilib configuration for libgcc... 
Configuring stage 1 in x86_64-redhat-linux/libgcc 
configure: loading cache ./config.cache 
checking build system type... x86_64-redhat-linux-gnu 
checking host system type... x86_64-redhat-linux-gnu 
checking for --enable-version-specific-runtime-libs... no 
checking for a BSD-compatible install... /usr/bin/install -c 
checking for gawk... gawk 
checking for x86_64-redhat-linux-ar... ar 
checking for x86_64-redhat-linux-lipo... lipo 
checking for x86_64-redhat-linux-nm... /temp/gcc-4.7.2/host-x86_64-redhat-linux/gcc/nm 
checking for x86_64-redhat-linux-ranlib... ranlib 
checking for x86_64-redhat-linux-strip... strip 
checking whether ln -s works... yes 
checking for x86_64-redhat-linux-gcc... /temp/gcc-4.7.2/host-x86_64-redhat-linux/gcc/xgcc -B/temp/gcc-4.7.2/host-x86_64-redhat-linux/gcc/ -B/usr/local/gcc-4.7.2/x86_64-redhat-linux/bin/ -B/usr/local/gcc-4.7.2/x86_64-redhat-linux/lib/ -isystem /usr/local/gcc-4.7.2/x86_64-redhat-linux/include -isystem /usr/local/gcc-4.7.2/x86_64-redhat-linux/sys-include 
checking for suffix of object files... configure: error: in `/temp/gcc-4.7.2/x86_64-redhat-linux/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 `/temp/gcc-4.7.2' 
make[1]: *** [stage1-bubble] Error 2 
make[1]: Leaving directory `/temp/gcc-4.7.2' 
make: *** [all] Error 2 

방법이 오류를 해결하려면?

답변

0

나는 내 문제를 해결했습니다. 그냥 gmp, mpc, mpfr, ppl 라이브러리의 경로를 환경 변수 LD_LIBRARY_PATH로 내 보낸 것입니다.