SCIENTIFIC-LINUX-USERS Archives

June 2005

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jaroslaw Polok <[log in to unmask]>
Reply To:
Jaroslaw Polok <[log in to unmask]>
Date:
Fri, 10 Jun 2005 12:02:34 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
> Some searching on google has yielded the suggestion of installing the 
> compat-gcc packages, but I can't find too much solid information about 
> these things. Is it safe to just install them? 

The compat packages are designed to be installed in parallel
with current versions, so yes.

And on SL it is pretty easy to install these, all you need
is:

yum install compat-gcc-c++ (maybe also compat-gcc-g77, compat-gcc)
or
apt-get update && apt-get install compat-gcc-c++

Once I have them
> installed, how do I then use them?

Instead of calling gcc or g++ in your Makefile you shall use:

/usr/bin/i386-redhat-linux7-c++ or
/usr/bin/i386-redhat-linux-gcc

#/usr/bin/i386-redhat-linux7-g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux7/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-128)


> If anyone has any experiences, I be pleased to hear about them!

Well: do not count on these exact compat packages versions
to be available forever in future system versions ...
(as an example: on SL3 compat packages are: GCC 2.96
on SL4 these are: GCC 3.2.3)

jarek

__
-------------------------------------------------------
_ Jaroslaw_Polok ___________________ CERN - IT/ADC/LE _
_ http://home.cern.ch/~jpolok ___ tel_+41_22_767_1834 _
_____________________________________ +41_78_792_0795 _

ATOM RSS1 RSS2