据说新版本的gcc有一些新的特性,而我的服务器居然还在使用很老很老的,额,4.4.7的gcc版本,因此我决定稍微升级一下,步骤记录如下:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
[root@localhost gcc-5.2.0]# yum install bzip2 [root@localhost gcc-5.2.0]# ./contrib/download_prerequisites [root@localhost gcc-5.2.0]# mkdir /byrd/service/gcc [root@localhost gcc-5.2.0]# cd gmp [root@localhost gmp]# ./configure --prefix=/byrd/service/gcc/gmp [root@localhost gmp]# make && make install [root@localhost gmp]# cd ../mpfr [root@localhost mpfr]# ./configure --prefix=/byrd/service/gcc/mpfr --with-gmp=/byrd/service/gcc/gmp [root@localhost mpfr]# make && make install [root@localhost mpfr]# cd ../mpc [root@localhost mpc]# ./configure --prefix=/byrd/service/gcc/mpc --with-gmp=/byrd/service/gcc/gmp --with-mpfr=/byrd/service/gcc/mpfr [root@localhost mpc]# make && make install [root@localhost mpc]# cd ../isl [root@localhost isl]# ./configure --prefix=/byrd/service/gcc/isl --with-gmp-prefix=/byrd/service/gcc/gmp [root@localhost isl]# make && make install [root@localhost isl]# cd .. [root@localhost gcc-5.2.0]# wget http://www.bastoul.net/cloog/pages/download/cloog-0.18.4.tar.gz [root@localhost gcc-5.2.0]# tar -zxf cloog-0.18.4.tar.gz [root@localhost gcc-5.2.0]# cd cloog-0.18.4 [root@localhost cloog-0.18.4]# ./configure --prefix=/byrd/service/gcc/cloog --with-gmp-prefix=/byrd/service/gcc/gmp [root@localhost cloog-0.18.4]# make && make install |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!