GCC4.8.5离线安装

  • Post author:
  • Post category:其他

GCC4.8.5离线安装

1. 下载安装包

链接: https://pan.baidu.com/s/1t-QypHVNDz2LoWgtO14lrg 提取码: 8bkc

将下载的包上传到服务器

可以通过xftp上传

2. 查看上传的包

[root@gnn gcc]# ll
total 31964
-rw-r--r--. 1 root root  6234536 Mar 10 10:35 cpp-4.8.5-28.el7.x86_64.rpm
-rw-r--r--. 1 root root 16967040 Mar 10 10:35 gcc-4.8.5-28.el7.x86_64.rpm
-rw-r--r--. 1 root root  1116252 Mar 10 10:35 glibc-devel-2.17-222.el7.x86_64.rpm
-rw-r--r--. 1 root root   694524 Mar 10 10:35 glibc-headers-2.17-222.el7.x86_64.rpm
-rw-r--r--. 1 root root  7442492 Mar 10 10:35 kernel-headers-3.10.0-862.el7.x86_64.rpm
-rw-r--r--. 1 root root    51732 Mar 10 10:35 libmpc-1.0.1-3.el7.x86_64.rpm
-rw-r--r--. 1 root root   208316 Mar 10 10:35 mpfr-3.1.1-4.el7.x86_64.rpm

3. 安装

[root@gnn gcc]# rpm  -ivh  *.rpm --nodeps --force
Preparing...                          ################################# [100%]
Updating / installing...
   1:mpfr-3.1.1-4.el7                 ################################# [ 14%]
   2:libmpc-1.0.1-3.el7               ################################# [ 29%]
   3:cpp-4.8.5-28.el7                 ################################# [ 43%]
   4:kernel-headers-3.10.0-862.el7    ################################# [ 57%]
   5:glibc-headers-2.17-222.el7       ################################# [ 71%]
   6:glibc-devel-2.17-222.el7         ################################# [ 86%]
   7:gcc-4.8.5-28.el7                 ################################# [100%]

4.查看是否安装成功

[root@gnn gcc]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --ena
ble-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++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linuxThread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) 


版权声明:本文为u013010499原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。