gcc 编译安装

wget https://kojipkgs.fedoraproject.org//packages/gcc/7.1.1/1.module_1a179a7b/src/gcc-7.1.1-1.module_1a179a7b.src.rpm

./configure

报错:
【configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+】
解决
yum install gmp gmp-devel mpfr mpfr-devel libmpc libmpc-devel
报错:
【g++: error: gengtype-lex.c: No such file or directory】
解决:
yum install -y flex

posted @ 2019-09-09 12:23  青色蔷薇  阅读(243)  评论(0编辑  收藏