LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Tim Prince (TimothyPrince_at_[hidden])
Date: 2008-05-07 20:30:16


Steven wrote:
> Hi Tim:
>
> [root_at_xblade08 ~]# mpif77 -v
> Using built-in specs.
> Target: i386-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)
>
> Besides gcc, is there any other Fortran compiler shipped in RHEL5? How should I configure lam?
>
I'm a little rusty on configuring lam, but you must specify gfortran as
the Fortran compiler. gcc as the C compiler, and g++ as C++ compiler.
If you look at lam FAQ, the recommended method is to set the environment
variables
CC=gcc
CXX=g++
FC=gfortran
and then run ./configure