CentOS 6.0 gcc-c++ 光盘安装

CentOS 6.0 gcc-c++ 光盘安装

CentOS 6.0 gcc-c++ 光盘安装(进入root用户)
将系统盘放入光驱
[root@wenp wenp]# more gcc_intsall.sh
#!/bin/bash
mount /dev/cdrom /mnt
cd /mnt/Packages
rpm -ivh glibc-common-2.12-1.7.el6.i686.rpm
rpm -ivh kernel-headers-2.6.32-71.el6.i686.rpm
rpm -ivh libgcc-4.4.4-13.el6.i686.rpm
rpm -ivh glibc-2.12-1.7.el6.i686.rpm
rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
rpm -ivh cpp-4.4.4-13.el6.i686.rpm
rpm -ivh libgomp-4.4.4-13.el6.i686.rpm
rpm -ivh nscd-2.12-1.7.el6.i686.rpm
rpm -ivh glibc-headers-2.12-1.7.el6.i686.rpm
rpm -ivh glibc-devel-2.12-1.7.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.4-13.el6.i686.rpm
echo "gcc is installed successful!!!"
rpm -ivh libstdc++-4.4.4-13.el6.i686.rpm
rpm -ivh libstdc++-devel-4.4.4-13.el6.i686.rpm
rpm -ivh gcc-c++-4.4.4-13.el6.i686.rpm
echo "gcc-c++ is installed successful!!!"

[root@wenp wenp]#chmod +x gcc_install.sh
[root@wenp wenp]#./gcc_install.sh


你可能感兴趣的:(centos,gcc)