I have installed netcdf-c successfully, I’m trying to install netcdf-fortran 4.6.1, but met the error “Could not compile conftest.f”, after find the config.log, I found “error: identifier “choke” is undefined”, here is the command I use for netcdf-fortran
export CC=pgcc
export FC=pgfortran
export CXX=c++
LD_LIBRARY_PATH=/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/lib:$LD_LIBRARY_PATH
CPPFLAGS=-I/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/include
LDFLAGS=-L/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/netcdf/lib
./configure --disable-shared --prefix=/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/
there are some errors relatted to the compiler, but have no ideal to solve it, I attached the config.log, any suggestion for this? Thank you in advance
config.log (53.1 KB)