I am new to Linux and trying to install gcc on my Red Hat Enterprise Linux using the yum package installer. However I receive the following error - can you help me out?
[root@localhost root]# yum install gcc
Gathering header information file(s) from server(s)
Server: CentOS-9 - Base
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
....Package compat-libstdc++-devel needs compat-libstdc++ = 7.3-2.96.118, this is not available.
Package compat-gcc-c++ needs compat-libstdc++ = 7.3, this is not available.
[root@localhost root]# rpm -ivh compat-libstdc++-7.3-2.96.118.i386.rpm
Preparing... ########################################### [100%]
package compat-libstdc++-7.3-2.96.118 is already installed
My yum.conf file:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/4/os/i386/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.centos.org/centos/4/os/i386/
gpgcheck=1