1. 程式人生 > >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/下載對應版本的包即可【歡迎大神指教