On Fri, 20 Mar 2009, grigory rybkin wrote:

> Hello,
>
> gcc-3.4 under SL 5 is in
> compat-gcc-34
> (to double-check
> $ yum whatprovides "*/gcc34"
> compat-gcc-34-3.4.6-4.i386 : Compatibility GNU Compiler Collection
> Matched from:
> Filename    : /usr/bin/gcc34
> )
>
> Gregory

Of course that assumes that people already know that the gcc 3.4.x 
compiler will be installed as gcc34 so perhaps a more general way to look 
for similar things is e.g. with:

   yum -d1 list '*gcc*'

which will also list the other compat-gcc packages (c++, g77 etc).

One word of warning, the compat g77 package installs as just g77 and f77 
(no 34 suffix or similar) so once installed some configure scripts (etc) 
will detect that before looking for the gfortran (or f95) that comes with 
the current gcc-4.x packages - and hence pick the wrong fortran compiler.

  -- Jon