Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3650320
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2021-01-20 15:14:04

https://my.oschina.net/panquanxing/blog/3070964
安装依赖包./contrib/download_prerequisites
cd gmp-6.1.0
./configure --prefix=/usr/local/gmp-6.1.0
make && make install cd mpfr-3.1.4
./configure --prefix=/usr/local/mpfr-3.1.4 --with-gmp=/usr/local/gmp-6.1.0
make && make install cd mpc-1.0.3
./configure --prefix=/usr/local/mpc-1.0.3 --with-gmp=/usr/local/gmp-6.1.0 --with-mpfr=/usr/local/mpfr-3.1.4
make && make install 
cd isl-0.18/
./configure --prefix=/usr/local/isl-0.18 --with-gmp-prefix=/usr/local/gmp-6.1.0 
make && make install 

$ mkdir build && cd build

5.进入编译目录build后,通过gcc-8.3.0文件夹下的configure脚本生成makefile文件。

此时的设置可以参考前面的gcc-4.8.5的配置,-prefix配置make install的目录(安装目录),--enable-languages中去掉java(不支持),仅支持本机x64配置--disable-multilib(需要支持x86就去掉)。

$ ../configure --prefix=/usr/local/gcc-8.3.0 --with-gmp=/usr/local/gmp-6.1.0 --with-mpfr=/usr/local/mpfr-3.1.4 --with-mpc=/usr/local/mpc-1.0.3 --with-isl=/usr/local/isl-0.18 --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux --disable-multilib 

配置完成后,进行make和make install。

# make && make install

阅读(2142) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~