-
Notifications
You must be signed in to change notification settings - Fork 103
Description
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/
for netcdf-c, the command is:
CPPFLAGS=-I/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/hdf5/include
LDFLAGS=-L/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/hdf5/lib
./configure --prefix=/mnt/work/wannh/build_megan/library/netcdf_pg/Build_WRF/LIBRARIES/netcdf/ --disable-dap --disable-shared
system inf:
Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-197-generic x86_64)
zlib 1.2.11
hdf5 1.15.4-3
netcdf-c 4.9.2
any suggestion for this error? Thank you in advance