首页 > 其他 > 详细

gcc4.9.2 for osx

时间:2015-01-27 18:35:51      阅读:350      评论:0      收藏:0      [点我收藏+]

安装GMP

cd gmp*;mkdir build && cd build  
../configure --prefix=/usr/local/gcc4.9.2 --enable-cxx
make;make install

安装MPFR

cd ../../mpfr*;mkdir build && cd build  
../configure --prefix=/usr/local/gcc4.9.2 --with-gmp=/usr/local/gcc4.9.2
make;make install

安装MPC

cd ../../mpc*;mkdir build && cd build  
../configure --prefix=/usr/local/gcc4.9.2 --with-gmp=/usr/local/gcc4.9.2 --with-mpfr=/usr/local/gcc4.9.2  
make;make install

安装GCC

cd ../../gcc* ;mkdir build && cd build  
../configure --prefix=/usr/local/gcc4.9.2 --enable-checking=release --with-gmp=/usr/local/gcc4.9.2 --with-mpfr=/usr/local/gcc4.9.2 --with-mpc=/usr/local/gcc4.9.2 --program-suffix=4.9.2

可以只需要特定语言,可以加个选项:--enable-languages=c,c++,fortran

接着:make最后:make install

配置环境变量export GCC_HOME=/usr/local/gcc4.9.2export PATH=$GCC_HOME/bin:/usr/local/bin:$PG_HOME/bin:$FIREBIRD_HOME/bin:$PATH

-EOF-

gcc4.9.2 for osx

原文:http://blog.csdn.net/gtlions/article/details/43196147

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!