gcc-6.4.0在centos7上编译

下载地址:http://mirrors.opencas.org/gnu/gcc/gcc-6.4.0/

yum group install "Development Tools"
yum install gmp-devel mpfr-devel libmpc-devel glibc-devel libgcc gcc-c++

tar -xzvf gcc-6.4.0.tar.gz
cd gcc-6.4.0
sh contrib/download_prerequisites

mkdir gcc-build
cd gcc-build
../gcc-6.4.0/configure -v --enable-languages=c,c++ --disable-multilib --prefix=/usr/local/gcc-6.4.0

make -j30

mkdir -p /usr/local/gcc-6.4.0
make install

/usr/local/gcc-6.4.0/bin/gcc --version

posted on 2017-08-02 17:25  躬耕陇亩  阅读(352)  评论(0编辑  收藏  举报

导航