several versions of gcc

Andrew Novikov mymuss at gmail.com
Sat Nov 19 05:30:35 GMT 2005


On 11/18/05, Dinesh Nair <dinesh at alphaque.com> wrote:
>
>
>
> On 11/18/05 09:09 Andrew Novikov said the following:
> > Hello,
> >
> > Is there a way to have both gcc34 and gcc40 (and possibly other
> versions)
> > simultaneously?
>
> back on freebsd 4.11, i had the system installed gcc 2.95 and the ports
> installed gcc 3.4.x running simultaneously. gcc 3.4 was invoked as gcc34.


Indeed I can run gcc from system (2.95.4 in my case), which is installed to
/usr/ and any of gcc from ports which installs itself into /usr/local/ (for
example, 4.0)

However I cannot have at the same time lang/gcc34 and lang/gcc40 (or any
other two version from ports) because they both install files in the same
place somewhere in /usr/local/. Is there a way to specify a different dir,
say /usr/local/gcc34, /usr/local/gcc40 etc?

I only see one solution now: get original gcc tarbal and configure it with
different prefix, however I am looking for a 'right way' with ports.


PS: running 4.11-STABLE

--
> Regards, /\_/\ "All dogs go to heaven."
> dinesh at alphaque.com (0 0) http://www.alphaque.com/
>
> +==========================----oOO--(_)--OOo----==========================+
> | for a in past present future; do |
> | for b in clients employers associates relatives neighbours pets; do |
> | echo "The opinions here in no way reflect the opinions of my $a $b." |
> | done; done |
>
> +=========================================================================+
>



--
Sincerely,
Andrew


More information about the freebsd-questions mailing list