AIX 安装GCC

1、下载RPM包(ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/)
gcc-4.7.2.aix6.1.ppc.rpm,
gcc-cplusplus-4.7.2.aix6.1.ppc.rpm,
libgcc-4.7.2.aix6.1.ppc.rpm,
libstdcplusplus-4.7.2.aix6.1.ppc.rpm,
libstdcplusplus-devel-4.7.2.aix6.1.ppc.rpm

2、FTP将安装包上传到服务器上

3、执行安装

#rpm -ivh gcc-4.7.2.aix6.1.ppc.rpm
#rpm -ivh libgcc-4.7.2.aix6.1.ppc.rpm
#rpm -ivh libstdcplusplus-4.7.2.aix6.1.ppc.rpm
#rpm -ivh libstdcplusplus-devel-4.7.2.aix6.1.ppc.rpm
#rpm -ivh gcc-cplusplus-4.7.2.aix6.1.ppc.rpm

4、执行命令 #gcc -v,结果如下,整个安装OK


-bash-4.2# gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/4.7.2/lto-wrapper

Target: powerpc-ibm-aix6.1.0.0

Configured with: ../gcc-4.7.2/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --enable-threads --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix6.1.0.0

Thread model: aix

gcc version 4.7.2 (GCC)





你可能感兴趣的:(gcc,AIX)