[root@zengxj ~]# wget http://ftp.gnu.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.gz [root@zengxj ~]# tar -zvxf gcc-6.1.0.tar.gz --directory=/usr/local/ [root@zengxj ~]# cd /usr/local/gcc-6.1.0 [root@zengxj gcc-6.1.0]# ./contrib/download_prerequisites [root@zengxj gcc-6.1.0]# mkdir build && cd build [root@zengxj build]# ../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib [root@zengxj build]# make [root@zengxj build]# make install # 重启 [root@zengxj build]# reboot
Centos6.X 手动升级gcc
猜你喜欢
转载自www.cnblogs.com/xi-jie/p/10593235.html
今日推荐
周排行