Opened 13 years ago

Closed 13 years ago

#30572 closed defect (duplicate)

netcdf @4.1.3 no netcdf.mod file

Reported by: barrier.nicolas@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: netcdf

Description

Hi

I have a problem when trying to use the netcdf library (installed with macport) on a f90 program. I have the following error:

gfortran cdfio.f90 cdfio.o -Lopt/local/lib -lnetcdf cdfio.f90:18.13:

USE netcdf

1

Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory

Indeed, I have no netcdf.mod file in the installation directory. So my first question is: how can I build this .mod file? And do I have the possibility to choose the fortran compiler?

Thanks

Change History (2)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to takeshi@…
Port: netcdf added

Please remember to fill in the Port field and cc the maintainer.

comment:2 Changed 13 years ago by tenomoto (Takeshi Enomoto)

Resolution: duplicate
Status: newclosed

Some ports do not rely on the Fortran interface so by default it is not installed. You need to choose one of fortran compilers (g95, gcc43, gcc44 and gcc45). You will have ${prefix}/include/NETCDF.mod. This is a duplicate of #26674, which is invalid.

Note: See TracTickets for help on using tickets.