On Sat, 31 May 2003, Joseph A Nagy Jr wrote:

> Matthew Saltzman wrote:
> > On Sat, 31 May 2003, Joseph A Nagy Jr wrote:
> >
> >
> >>Matthew Saltzman wrote:
> >>
> >>>>To install gcc++ and libstdc++ requires 82 packages be removed (I use
> >>>>RedCarpet for all my updates, since I can get Gnome updates as well as
> >>>>general RedHat updates)
> >>>
> >>>
> >>>I think he meant to suggest getting the latest gcc *source* (not as an
> >>>RPM), compile that and install it outside of the RPM system.  Then you'll
> >>>have two compilers.
> >>
> >>Ah. Well, I have the other gcc compilers installed no problem (gccjava,
> >>g77, gnat, etc)
> >
> >
> > Sure.  Those are "add-ons" to gcc, and they are all the same version.  If
> > you want to change the gcc *version*, you're going to have to change all
> > those others too, plus some libraries (libstdc++ in particular) and any
> > programs linked to those libraries.  You can have different *versions* of
> > gcc on the same system, but you have to be careful about conflicts.
>
> Isn't gcc++ also an add on to gcc? If so, why are so many programs
> linked against it?

g++ is an add-on to gcc, but C++ is a very different langauge from C.
Every C++ program links against libstdc++.

> >
> >>>The other possibility is that there were gcc-3.1 RPMs for RH7.3 that were
> >>>designed to play nicely with the gcc-2.96 ones that came with it.  Maybe
> >>>someone remembers where to find them.
> >>>
> >>
> >>I was pulling all my RPM's directly from ftp.redhat.com/pub/path/to/9.0/rpms
> >
> >
> > Maybe my memory is failing me, but I thought you started with a 7.x system
>
> 7.2 to be exact. ;) I've got several binaries from RH9 plugged in
> already (needed files from them, such as libmng, libpng, libjpg, all the
> dependencies for FreeCiv 1.14 (including glibc2.3)).
>
> > and wanted a gcc-3.2 compiler on it.  Your alternatives are:
> >
> > (1) Upgrade to RH9 (as we were discussing in the other thread).
>
> Which I'm gonna do (BTW, someone has agreed to send me a copy of the RH9
> cd's so I can upgrade via cd)
>
> > (2) Install gcc-3.2 and libraries in /usr/local (from source, without
> >     using RPM).
>
> I've tried that. Then I've removed the RPM's and I couldn't compile
> anything from source!

You wouldn't want to remove any RPMs, just add the path to the new
binaries to to your path (rename them to gcc3 so that you can use both old
and new compilers).

>
> > (3) Find the gcc-3.1 RPMs that were meant for installation on RH7.x.
> >
>
> They exist? I had gcc3 (and associated add-ons) installed, but they got
> removed when I installed gcc-3.2

That would probably have been the ones.  If you need 3.2, though, 3.1
probably wouldn't help you.  Note that the binary interfaces for libstdc++
changed from 2.95.3 to 2.96.x to 3.0 to 3.1 to 3.2 and will probably
change again in 3.4 (hopefully for the last time).  So you always need the
correct libstdc++ for the compiler version you are running.

But this whole discussion is really moot since you'll be upgrading to RH9
anyway.  I think that's really the best solution.

-- 
                Matthew Saltzman

Clemson University Math Sciences
[EMAIL PROTECTED]
http://www.math.clemson.edu/~mjs


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to