Re: GCC packages fighting amongst themselves?
On Fri, Nov 09, 2001 at 12:00:21PM -0500, Phil Edwards wrote:
| For a while now I've had both gcc/gcc-2.95 and gcc-3.0 installed; three
| packages in all. I briefly tried uninstalling the gcc/gcc-2.95 packages
| (why are there two of them? they're the same thing, aren't they?) but
| found that the gcc-3.0 package doesn't use the "alternatives" links to
| provide /usr/bin/gcc, etc.
[package conflicts]
| Why is 'gcc' conflicting with its own documentation package? What can I
| do to beat it into submission?
|
| (Ironically, the reason I want to get rid of gcc-2.95 entirely and use
| only gcc-3.x is that I'm a GCC maintainer, and want to do lots of testing
| with the 3.x series. If the solution to this dependancy mess involves
| destroying gcc-doc, that's fine with me; I have many copies of the GCC
| manual already. :-)
This system currently has :
$ dpkg -l | grep gcc
ii gcc 2.95.4-8 The GNU C compiler.
ii gcc-2.95 2.95.4-0.01100 The GNU C compiler.
ii gcc-3.0 3.0.2-0pre0109 The GNU C compiler.
ii gcc-3.0-base 3.0.2-0pre0109 The GNU Compiler Collection (base package).
ii libgcc1 3.0.2-0pre0109 GCC support library.
Using 'apt-cache show gcc' reveals :
Version: 2:2.95.4-8
Provides: c-compiler
Depends: cpp (>= 2:2.95.4-8), gcc-2.95, cpp-2.95
Recommends: libc-dev
Suggests: make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb
Conflicts: gcc-doc (<< 1:2.95.3)
The gcc package conflicts with the -doc package that is of the wrong
version. The gcc-doc package that shows itself available on this
system is version 2.95.2-20.
I think the 'gcc' package is just a simply-named package to provide
the current default version.
Try running
apt-get remove gcc-doc
apt-get install gcc-3.0 <other gcc3 packages you want>
You can put a '-s' option after the 'apt-get' to see what apt will do
if you run the command for real (without the '-s' option).
HTH,
-D
Reply to: