linux makeinfo rpm,在CentOS6 x86_64上编译安装gcc6.3.0

有些软件推荐使用新版的gcc,但在RH系列发行版的官方仓库中常常是找不到的,我们可以自己编译。

1、下载gcc 6.3.0源代码

版本选择,目前为止最新 release 是 2017-04-20 的7.1,说明仍然是“As of this time no releases of GCC 7 have yet been made.”,所以我们还是选择 6.3。

下载镜像

2、安装 gmp-devel、mpfr-devel、zip 以及它们的依赖

yum install gmp-devel mpfr-devel zip

3、安装 libmpc-devel

wget https://dl.fedoraproject.org/pub/epel/6/x86_64/libmpc-0.8-3.el6.x86_64.rpm

wget https://dl.fedoraproject.org/pub/epel/6/x86_64/libmpc-devel-0.8-3.el6.x86_64.rpm

yum install libmpc-devel-0.8-3.el6.x86_64.rpm libmpc-0.8-3.el6.x86_64.rpm

4、编译

./configure --disable-multilib --prefix=/opt/gcc-6.3.0

暂时只需要编译 64 位版本,所以使用参数 disable-multilib。

5、支持包的版本警告

上边提到的 gmp、mpfr、mpc,会有如下提示,暂时保持如此

checking for the correct version of gmp.h... buggy but acceptable

6、编译安装

make

make install

这个过程时间比较长,需要1-2小时甚至更多,请耐心等待。

一些问题

1、makeinfo 缺失警告

checking for modern makeinfo... no

configure: WARNING:

*** Makeinfo is missing or too old.

*** Info documentation will not be built.

它来自于包 texinfo,用来生成文档,缺少也不会对结果有什么影响。

Summary : Tools needed to create Texinfo format documentation files

URL : http://www.gnu.org/software/texinfo/

License : GPLv3+

Description : Texinfo is a documentation system that can produce both online

: information and printed output from a single source file. The GNU

: Project uses the Texinfo file format for most of its documentation.

:

: Install texinfo if you want a documentation system for producing both

: online and print documentation from the same source file and/or if you

: are going to write documentation for the GNU Project.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值