Quote:
Originally Posted by reddazz
If you have the original Red Hat discs, you can install an older version of gcc from there.
|
reddazz -thanks for your reply...
Yes, I do have the original CDs..
I found the rpm file on the cd and tried to install it using that rpm file but I got the following errors. Please see detailed information below:
[root@localhost gcc-build]# rpm -i compat-gcc-7.3-2.96.122.src.rpm
warning: compat-gcc-7.3-2.96.122.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: cannot create %sourcedir /usr/src/redhat/SOURCES
-> so I created the directory
mkdir /usr/src/redhat/SOURCES/gcc-2.96-20000731
[root@localhost gcc-build]# rpm -i compat-gcc-7.3-2.96.122.src.rpm
[root@localhost gcc-build]#
-> I though this is suppose to install gcc already ??
# gcc
-bash: gcc: command not found
-> So I went to the directory and found the source code and tried installing it from there but got the error below:
commands:
cd /usr/src//redhat/SOURCES/
bzip2 -d gcc-2.96-20000731.tar.bz2
tar xvf gcc-2.96-20000731.tar
cd /usr/src/redhat/SOURCES/gcc-2.96-20000731
Error Below:
[root@localhost gcc-2.96-20000731]# ./configure
Configuring for a i686-pc-linux host.
Created "Makefile" in /usr/src/redhat/SOURCES/gcc-2.96-20000731 using "mt-frag"
./configure: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
Not sure where to go from here...