redhat安装gcc-10.1.0

#下载
wget http://ftp.gnu.org/gnu/gcc/gcc-10.1.0/gcc-10.1.0.tar.gz#这个下载速度很慢,建议下载器下载后上传,或者挂代理 wget http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz wget http://ftp.gnu.org/gnu/automake/automake-1.16.2.tar.gz wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz #安装

tar -xzvf gcc-10.1.0.tar.gz tar -xzvf m4-1.4.18.tar.gz tar -xzvf autoconf-latest.tar.gz tar -xzvf automake-1.16.2.tar.gz tar -xzvf mpc-1.0.3.tar.gz tar -xjvf gmp-6.1.0.tar.bz2 tar -xjvf mpfr-3.1.4.tar.bz2 cd m4-1.4.18/ ./configure make&make install cd ../autoconf-2.69/ ./configure make&make install cd ../automake-1.16.2/ make&make install   这里出现报错:   help2man: can't get `--help' info from automake-1.16    Try `--no-discard-stderr' if option outputs to stderr   vim Makefile   在3700行末尾添加--no-discard-stderr(具体位置见下图) make&make install cd ../mpfr-3.1.4/ ./configure make&make install cd ../mpc-1.0.3/ ./configure make&make install yum install -y glibc-devel.i686 libgcc.i686#不装这两个包安装gcc会报错 cd ../gcc-10.1.0/ make&make install#很慢,我装了大概一小时
help2man: can't get `--help' info from automake-1.16报错的修改位置如下

猜你喜欢

转载自www.cnblogs.com/fureteita/p/13174468.html