Bug 1226009 - netcdf -- available netcdf binaries do not include netcdf.mod needed for fortran compilation
Summary: netcdf -- available netcdf binaries do not include netcdf.mod needed for fort...
Status: RESOLVED INVALID
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Maintenance (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: HPC Issue Tracker
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-05 14:33 UTC by thomas kosvic
Modified: 2024-06-05 18:10 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thomas kosvic 2024-06-05 14:33:14 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.
Comment 1 Egbert Eich 2024-06-05 18:10:28 UTC
`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).