Gcc
From DikapediaV2
How to install gcc on RHEL6
Tested on RHEL6.9:
mkdir /mnt/rhel6dvd mount /dev/sr0 /mnt/rhel6dvd # ensure the DVD Iso is connected to the VM vi /etc/yum.repos.d/dvd.repo [dvd-Server] mediaid=1409145026.642170 name=RHEL 6 Server DVD baseurl=file:///mnt/rhel6dvd/Server gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled=1 gpgcheck=1 yum -y install gcc
How to install gcc manually on RHEL6.10
Note: This works only in RHEL6.10, as I've tested in RHEL6.9 and there are some additional missing dependencies.
(This is needed for CloudEndure Agent installation) Had to install gcc manually, which required some dependencies to be installed as well:
Download and install dependencies, and then install gcc-4.4.7-23:
# wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.3/os/x86_64/Packages/ppl-0.10.2-11.el6.x86_64.rpm # rpm -i ppl-0.10.2-11.el6.x86_64.rpm # wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.6/os/x86_64/Packages/mpfr-2.4.1-6.el6.x86_64.rpm # rpm -i mpfr-2.4.1-6.el6.x86_64.rpm # wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.3/os/x86_64/Packages/cloog-ppl-0.15.7-1.2.el6.x86_64.rpm # rpm -i cloog-ppl-0.15.7-1.2.el6.x86_64.rpm # wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.10/os/x86_64/Packages/cpp-4.4.7-23.el6.x86_64.rpm # rpm -i cpp-4.4.7-23.el6.x86_64.rpm # wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.10/os/x86_64/Packages/gcc-4.4.7-23.el6.x86_64.rpm # rpm -i gcc-4.4.7-23.el6.x86_64.rpm
You can run it as a script:
#!/bin/bash wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.3/os/x86_64/Packages/ppl-0.10.2-11.el6.x86_64.rpm rpm -i ppl-0.10.2-11.el6.x86_64.rpm wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.6/os/x86_64/Packages/mpfr-2.4.1-6.el6.x86_64.rpm rpm -i mpfr-2.4.1-6.el6.x86_64.rpm wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.3/os/x86_64/Packages/cloog-ppl-0.15.7-1.2.el6.x86_64.rpm rpm -i cloog-ppl-0.15.7-1.2.el6.x86_64.rpm wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.10/os/x86_64/Packages/cpp-4.4.7-23.el6.x86_64.rpm rpm -i cpp-4.4.7-23.el6.x86_64.rpm wget ftp://ftp.pbone.net/mirror/vault.centos.org/6.10/os/x86_64/Packages/gcc-4.4.7-23.el6.x86_64.rpm rpm -i gcc-4.4.7-23.el6.x86_64.rpm