由于内核需要升级相应的gcc也需升级.记录下过程以便后续再用.
1)下载相关的源码(配置gcc时提示需安装相应的lib,因此相关包的更新是必须的):
1>gcc-4.5.1.tar.bz2
2>gmp-4.3.2.tar.bz2
3>mpc-0.8.1.tar.gz
4>mpfr-2.4.2.tar.bz2
2)安装相应的库,由于mpc和mpfr依赖库gmp所以最先安装
1>安装gmp-4.3.2
tar xjvf gmp-4.3.2.tar.bz2;cd gmp-4.3.2;./configure;make;make install
2>安装mpc-0.8.1
tar xjvf mpfr-2.4.2.tar.bz2;cd mpfr-2.4.2;./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib; make;make check;make install
3>安装mpfr-2.4.2
tar xzvf mpc-0.8.1.tar.gz;cd mpc-0.8.1;./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib $make $make check $sudo make install
3)如无特殊要求,默认配置就可以了.
tar xjvf gcc-4.5.1.tar.bz2;cd gcc-4.5.1;./configure;make;make install
阅读(3198) | 评论(0) | 转发(1) |