CentOS6 install gcc-c ++ yum installation method yum-yinstallgccyum-yinstallgcc-c ++ CentOS6.0gcc-c ++ CD installation method (enter the root user) put the system disk into the optical drive automatic installation script: #! /Bin/B
How to install gcc-c ++ yum on CentOS6
Yum-y install gcc
Yum-y install gcc-c ++
CentOS 6.0 gcc-c ++ CD installation method (enter the root user) Put the system disk into the optical drive Automatic installation script: #! /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] # chmod + x gcc_install.sh [Root @ wenp] #./gcc_install.sh Note that in the above script, the rpm Package has different names for different minor versions of the OS, and must be adjusted by yourself. |