Bugzilla – Bug 1226009
netcdf -- available netcdf binaries do not include netcdf.mod needed for fortran compilation
Last modified: 2024-06-05 18:10:28 UTC
A program I wish to compile needs netcdf.mod to incorporate netcdf. I cannot find this file in any openSUSE leap 15.5 repo through zypper search. In a rocky linux vm this file was available in netcdf packages and compilation went easily. Suggest netcdf compilation of system binaries needs review.
`netcdf` aka netcdf-c does not provide Fortran bindings. You're not referring to netcdf-fortran by any chance? This package provides fortran bindings, the 'devel' package contains the .mod files. It is, however, only available for environment modules: netcdf-fortran-gnu-hpc-devel. To use it, you will need Lmod (which will be installed as a dependency if not there already). To use it, you will have to run `module load gnu netcdf-fortran` in the shell you are using to build your application. Also, you may have to add `-I $LIBRARY_PATH -L $INCLUDE` to your compiler command line (or FCFLAGS).