[techtalk] RedHat newbie question

Jeff Dike jdike at karaya.com
Sat Dec 18 19:15:19 EST 1999


> If so, how can I install it (or do I  need to reinstall RedHat?).
> Install directions seem to want to use gcc to do the installation.

You didn't way whose install directions want gcc.  If the system is up enough 
to run rpm (and it should be if you can do 'which foo'), check to see if it's 
installed first:
	rpm -q -a | grep egcs
If the egcs isn't intuitive, it wasn't for me either.

I get:	
	egcs-1.1.2-12
	egcs-c++-1.1.2-12

If you get nothing, mount your install CD (say on /mnt/cdrom) and
	ls /mnt/cdrom/RedHat/RPMS/egcs-*
and
	rpm -i <whatever popped out of the ls>

This shows what gcc depends on having installed already.  You might have to 
install some stuff at the same time as gcc:
	rpm -q -R egcs-1.1.2-12 
	binutils >= 2.9.1.0.21 (binutils-2.9.1.0.23-1.i386.rpm for me)
	cpp = 1.1.2		(cpp-1.1.2-12.i386.rpm)
	/sbin/install-info   (You should have everything from here down)
	/bin/sh  
	ld-linux.so.2  
	libc.so.6  
	libc.so.6(GLIBC_2.0)  
	libc.so.6(GLIBC_2.1)  

So, if you needed cpp as well, you'd do
	rpm -i /mnt/cdrom/RedHat/RPMS/egcs-1.1.2-12 /mnt/cdrom/RedHat/RPMS/cpp-1.1.2-1
2.i386.rpm

I'm also running RH6.0, so there's a good chance that everything is identical 
down to the version numbers for you.

				Jeff



************
techtalk at linuxchix.org   http://www.linuxchix.org




More information about the Techtalk mailing list