CentOS7 安装 gcc-4.9.0


下载gcc-4.9.0.tar.bz2,解压,/opt/gcc-4.9.0

自动下载gcc编译的依赖项
[root@localhost gcc-4.9.0]# ./contrib/download_prerequisites

[root@localhost gcc-4.9.0]# ./configure --prefix=/usr/gcc-4.9.0 --enable-languages=c,c++ --disable-multilib
--disable-multilib不生成编译为其他平台可执行代码的交叉编译器
--enable-languages让gcc支持那些语言

[root@localhost gcc-4.9.0]# make -j4

[root@localhost gcc-4.9.0]# make install


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(176) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
posted @ 2016-02-01 00:00  张同光  阅读(451)  评论(0编辑  收藏  举报