Reprint: http://blog.csdn.net/vah101/article/details/17677451
First go to http://vault.centos.org/6.5/os/x86_64/Packages/to download the used RPM package, including:
cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
cpp-4.4.7-4.el6.x86_64.rpm
gcc-4.4.7-4.el6.x86_64.rpm
gcc-c++-4.4.7-4.el6.x86_64.rpm
glibc-devel-2.12-1.132.el6.x86_64.rpm
glibc-headers-2.12-1.132.el6.x86_64.rpm
kernel-headers-2.6.32-431.el6.x86_64.rpm
libstdc++-devel-4.4.7-4.el6.x86_64.rpm
mpfr-2.4.1-6.el6.x86_64.rpm
ppl-0.10.2-11.el6.x86_64.rpm
The installation process looks like this:
RPM-IVH ppl-0.10.2-11.el6.x86_64.rpm
RPM-IVH cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
RPM-IVH mpfr-2.4.1-6.el6.x86_64.rpm
RPM-IVH cpp-4.4.7-4.el6.x86_64.rpm--force
RPM-IVH kernel-headers-2.6.32-431.el6.x86_64.rpm
RPM-IVH glibc-headers-2.12-1.132.el6.x86_64.rpm--force
RPM-IVH glibc-devel-2.12-1.132.el6.x86_64.rpm--force
RPM-IVH gcc-4.4.7-4.el6.x86_64.rpm--force
RPM-IVH libstdc++-devel-4.4.7-4.el6.x86_64.rpm
RPM-IVH gcc-c++-4.4.7-4.el6.x86_64.rpm
Note: The--force parameter is forced to be replaced when the conflict is attempted, not necessarily required.
Verify after the installation is complete:
#gcc-V
Using built-in specs.
Target:x86_64-redhat-linux
Configured with:. /configure--prefix=/usr--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-ppl--with-cloog--with-tune=generic--with-arch_32= i686--build=x86_64-redhat-linux
Thread Model:posix
GCC version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
#g + +-V
The
Using built-in specs.
Target:x86_64-redhat-linux
configured with:.. /configure--prefix=/usr--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-ppl--with-cloog--with-tune=generic--with-arch_32= i686--build=x86_64-redhat-linux
Thread model:posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)