Centos 6.4 rpm方式不联网安装gcc、gcc-c++

前端之家收集整理的这篇文章主要介绍了Centos 6.4 rpm方式不联网安装gcc、gcc-c++前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
先到 http://vault.centos.org/6.4/os/x86_64/Packages/这里下载需要用到的依赖包,然后依次执行以下命令
rpm -ivh libstdc++-4.4.7-3.el6.x86_64.rpm
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh cpp-4.4.7-3.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-358.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.107.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.107.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.7-3.el6.x86_64.rpm
rpm -ivh gcc-4.4.7-3.el6.x86_64.rpm
rpm -ivh gcc-c++-4.4.7-3.el6.x86_64.rpm
其他centos系统没试过,不过应该在 http://vault.centos.org/6.4/os/x86_64/Packages/下载对应版本的包即可【欢迎大神指教

猜你在找的CentOS相关文章