Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
244
stars
98
forks
source link
netcdf-fortran make error: f951: Fatal Error: Reading module ‘netcdf_nf_data’ #448
Closed
wannh2 closed 2 months ago
I have installled netcdf-c 4.8.1, and am trying to install netcdf-fortran 4 on Linux 5.4, but has the erro shown below
Here is the command I use
export FC=gfortran export CC=gcc export CXX=g++
export NFDIR=/mnt/work/wannh/build_megan/library/netcdf/ export CPPFLAGS=-I${NCDIR}/include export LDFLAGS=-L${NCDIR}/lib export LIBS="-lnetcdf" ./configure --disable-shared --prefix=/mnt/work/wannh/build_megan/library/netcdf/ make check
f951: Fatal Error: Reading module ‘netcdf_nf_data’ at line 1959 column 31: Unexpected EOF compilation terminated. make[1]: [Makefile:765: module_netcdf_nf_interfaces.lo] Error 1 make[1]: Leaving directory '/mnt/work/wannh/build_megan/library/netcdf-fortran-4.5.4/fortran' make: [Makefile:584: all-recursive] Error 1
here are system information Linux Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-197-generic x86_64),
any suggestion for this error? Thank you in advance