I've installed all the dependency for gcc 2.95.1 and when I attempt to install the rpm gcc-2.95.1 I keep getting this message:
bash$ rpm -ivh gcc-2.95.1-i386.rpm
Preparing... ########################################### [100%]
file /usr/bin/egcs from install of gcc-2.95.1-3 conflicts with file from package egcs-1.1.2-30
file /usr/bin/gcc from install of gcc-2.95.1-3 conflicts with file from package egcs-1.1.2-30
file /usr/bin/gcov from install of gcc-2.95.1-3 conflicts with file from package egcs-1.1.2-30
file /usr/bin/i386-redhat-linux-gcc from install of gcc-2.95.1-3 conflicts with file from package egcs-1.1.2-30
file /usr/bin/protoize from install of gcc-2.95.1-3 conflicts with file from package egcs-1.1.2-30
file /usr/bin/unprotoize from install of gcc-2.95.1-3 conflicts with file from package egcs-1.1.2-30
file /usr/i386-redhat-linux/lib/libiberty.a from install of gcc-2.95.1-3 conflicts with file from package egcs-1
.1.2-30
###############################################
Not being fimilar with rpm's,... what do I need to do, in order to be able to upgrade the gcc. We are currently using 2.91.1
Server:
Red Hat Linux release 6.2
Kernel 2.4.10 on an i686
Thanks,
Mickalo
Try to remove the offending files by rpm:
rpm -rv egcs-1.1.2-30
, and then install gcc using the usual
rpm -ihv gcc-2.95.1-i386.rpm
If that doesn't work, do
rpm -ihv --force --nodeps gcc-2.95.1-i386.rpm
It is rather dangerous as it will overwrite anything and won't check for any dependencies, including dep.s that get broken by the installation process.
How exactly is this '-r' option used... it keeps asking for additional arguments??
thanks,
Mickalo
I should've looked it up b4 I told you ...
It's -e, not -r. I don't know what -r does :p
Sorry
Originally posted by realnowhereman
I should've looked it up b4 I told you ...
It's -e, not -r. I don't know what -r does :p
Sorry
Well I tried that:
rpm -ev egcs-1.1.2-30
error: package egcs-1.1.2-30 is not installed
Go figure! :confused:
Maybe it's best to leave well enough alone! As they say, "..if it works.. don't fix it.."
appreciate you help tho.. :)
Mickalo
OK, let's give up on the issue of files being overwritten and simply install the new stuff no matter what happens.
My favourite syntax for RPM is:
rpm -ihv --force --nodeps gcc-2.95.1-i386.rpm
It always works ;)