CentOS7 安装gcc-c++yum安装方法
yum -y install gcc
yum -y install gcc-c++
CentOS 6.0 (7.0)gcc-c++ 光盘安装方法(进入root用户)
将系统盘放入光驱
自动安装脚本:
#!/bin/bash
#mount /dev/sr0 /media
cd /media/CentOS_6.2_Final/Packages
rpm -ivh glibc-common-2.12-1.47.el6.i686.rpm
rpm -ivh kernel-headers-2.6.32-220.el6.i686.rpm
rpm -ivh libgcc-4.4.6-3.el6.i686.rpm
rpm -ivh glibc-2.12-1.47.el6.i686.rpm
rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
rpm -ivh cpp-4.4.6-3.el6.i686.rpm
rpm -ivh libgomp-4.4.6-3.el6.i686.rpm
rpm -ivh nscd-2.12-1.47.el6.i686.rpm
rpm -ivh glibc-headers-2.12-1.47.el6.i686.rpm
rpm -ivh glibc-devel-2.12-1.47.el6.i686.rpm
rpm -ivh ppl-0.10.2-11.el6.i686.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
rpm -ivh gcc-4.4.6-3.el6.i686.rpm
echo "gcc is installed successful!!"
rpm -ivh libstdc++-4.4.6-3.el6.i686.rpm
rpm -ivh libstdc++-devel-4.4.6-3.el6.i686.rpm
rpm -ivh gcc-c++-4.4.6-3.el6.i686.rpm
echo "gcc-c++ is installed successful!!"
[root@wenp wenp]#chmod +x gcc_install.sh
[root@wenp wenp]#./gcc_install.sh
注意:上述脚本中rpm包因OS不同小版本有不同名称,须自己做调整。
原文来源http://www.centoscn.com/image-text/install/2013/0817/1349.html
yum -y install gcc
yum -y install gcc-c++
CentOS 6.0 (7.0)gcc-c++ 光盘安装方法(进入root用户)
将系统盘放入光驱
自动安装脚本:
#!/bin/bash
#mount /dev/sr0 /media
cd /media/CentOS_6.2_Final/Packages
rpm -ivh glibc-common-2.12-1.47.el6.i686.rpm
rpm -ivh kernel-headers-2.6.32-220.el6.i686.rpm
rpm -ivh libgcc-4.4.6-3.el6.i686.rpm
rpm -ivh glibc-2.12-1.47.el6.i686.rpm
rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
rpm -ivh cpp-4.4.6-3.el6.i686.rpm
rpm -ivh libgomp-4.4.6-3.el6.i686.rpm
rpm -ivh nscd-2.12-1.47.el6.i686.rpm
rpm -ivh glibc-headers-2.12-1.47.el6.i686.rpm
rpm -ivh glibc-devel-2.12-1.47.el6.i686.rpm
rpm -ivh ppl-0.10.2-11.el6.i686.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
rpm -ivh gcc-4.4.6-3.el6.i686.rpm
echo "gcc is installed successful!!"
rpm -ivh libstdc++-4.4.6-3.el6.i686.rpm
rpm -ivh libstdc++-devel-4.4.6-3.el6.i686.rpm
rpm -ivh gcc-c++-4.4.6-3.el6.i686.rpm
echo "gcc-c++ is installed successful!!"
[root@wenp wenp]#chmod +x gcc_install.sh
[root@wenp wenp]#./gcc_install.sh
注意:上述脚本中rpm包因OS不同小版本有不同名称,须自己做调整。
原文来源http://www.centoscn.com/image-text/install/2013/0817/1349.html