码迷,mamicode.com
首页 > 其他好文 > 详细

gcc4.9.2 for osx

时间:2015-01-27 18:38:27      阅读:185      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!