[MPICH] ERROR: gfortran compiler is not in PATH for driver: mpif90

Anthony Chan chan at mcs.anl.gov
Fri Feb 2 14:11:43 CST 2007


It sounds like your environment has multiple versions of MPI installed.
You need to make sure that your environment (e.g. PATH/LD_LIBRARY_PATH)
is set up correctly to use the compilers that are used to
compile/install the version of MPI that you are using.

I think mvpich-0.9.7 is based on mpich2-0.9.7 and so is dfferent from
mpich2-1.0.3, the libraries are not binary compatible.  Use mpi
compiler wrappers, mpicc/mpif90, if you are not already using them.

A.Chan

> On Fri, 2 Feb 2007, Vadivelan Ranjith wrote:
> Hi All
> I used mpich2-1.0.3 to compile our code. Our code compiled fine.
> But when I try to test our code in intel mpi, It gave the following
> error
>
> ERROR: gfortran compiler is not in PATH for driver: mpif90
>
> my .bashrc having following path
> source /opt/intel/fc/9.1.037/bin/ifortvars.sh
> source /opt/intel/mpi/3.0/bin32/mpivars.sh
> export PATH=/opt/intel/mpi/3.0/bin32:$PATH
>
> Then i changed the path to
> #export PATH=/opt/ofed1.1/mpi/intel/mvapich-0.9.7-mlx2.20/bin:$PATH
> #export LD_LIBRARY_PATH=/opt/ofed1.1/mpi/intel/mpvapich-0.9.7-mlx2.20/lib/shared:$LD_LIBRARY_PATH
>
> Now i got different error while compiling our code
>
> ld: skipping incompatible ///opt/ofed1.1/mpi/intel/mvapich-0.9.7-mlx2.2.0/lib/libmpichf90.a when searching for -lmpichf90
> ld: cannot find -lmpichf90
>
> I dont know what is the error mean. Our code is working fine with opensource mpich.
> Can anyone please help me to compile our code.
>
> Advance Thanks
> Velan
>
>
>
> ---------------------------------
>  Here’s a new way to find what you're looking for - Yahoo! Answers




More information about the mpich-discuss mailing list