Can't locate fortran 90 compiler

Hi,
I am using PGI community edition 17.4 Fortran compiler and trying to configure CTM model-MOZART in OS X EI Capiton 10.11.6 operating system. During configuration step, I am facing the problem in setting the PATH environment variable to include the fortran90 directory. It shows ‘‘Can’t locate the fortran compiler’’ even after giving the path to the directory.
Can someone tell me how Can I solve this problem?
I am using using following command to set the fortran90 compiler path:

export PATH=$PATH://opt/pgi/osx86-64/17.4/bin/

To check whether it is working or not, I am issuing the command:

pgf90 -v

Output:

Export PGI=/opt/pgi
Export PGIBIN=/opt/pgi/osx86-64/17.4/bin
pgf90-Warning-No files to process

After issuing the configuration command it shows

=======================================================================
 
... Writing configuration file : MZ4.cfg
 
mz4 configuration summary
----------------------------------------------------------
Can't locate fortran 90 compiler
 
Supported fortran90 compilers are :
(1) Portland Group
(2) Intel (version 10.x or greater highly advised)
(3) Lahey

 
Can NOT build mz4 executable for the following reason(s):
(a) Can't locate fortran 90 compiler
(b) Can't locate netcdf library libnetcdf.a
 
If you have configuration questions send email to : ______@____.__
(It would helpful to attach the cfg.log file to the email)
 
 
FYI: this computing environment does NOT have batch queueing
compiler: Undefined variable. ''

This is the copy of the configuration logfile which contain slightly more information:

=======================================================================
The operating system is : DARWIN
 
gmake is in the execution path
 
mpif90 script found in /opt/..
mpif90 paths :
/opt/pgi/osx86-64/2017/mpi/mpich/bin/mpif90
 
 
Portland Group pgf90 is in the execution path
 
pgf90 test failed
 
Can not locate Netcdf library libnetcdf.a
 
 
... Writing configuration file : MZ4.cfg
mz4 configuration summary
----------------------------------------------------------
Can't locate fortran 90 compiler
 
Supported fortran90 compilers are :
(1) Portland Group
(2) Intel (version 10.x or greater highly advised)
(3) Lahey

 
Can NOT build mz4 executable for the following reason(s):
(a) Can't locate fortran 90 compiler
(b) Can't locate netcdf library libnetcdf.a
 
If you have configuration questions send email to : __@___.__
(It would helpful to attach the cfg.log file to the email)
 
 
FYI: this computing environment does NOT have batch queueing

Is the problem in gmake execution path as shown in logfile or in something others files or command ? Thank you.

Hi Vijay,

It looks like the configuration script’s Fortran compiler test is trying to link in NetCDF but the compiler can’t find it.

Portland Group pgf90 is in the execution path

pgf90 test failed

Can not locate Netcdf library libnetcdf.a

Do you need to add “-L<path_to_netcdf>” to your link options? Do you need to set a environment flag such as “NETCDF” or “NETCDF_LIB” to tell the configure script where the library is located?

If that doesn’t work, you may want to contact the authors or consult the model’s documentation on how to configure MOZART. I haven’t built it myself so don’t know what the requirement are.

-Mat

Thank you very much Mat for answering.
It is correct that configuration script’s Fortran compiler test is trying to link to NetCDF. I installed netcdf files in a set of usual directories and its linked.
Thank you.
Vijay.