Thank you for your reply.
I used,
mkdir /usr/local/netcdf-4.7.4
setenv CFLAGS -I/usr/local/hdf5-1.8.18/include
setenv LDFLAGS -L/usr/local/hdf5-1.8.18/lib
setenv FC pgf90
./configure --prefix=/usr/local/netcdf-4.7.4
make
make install
And finally applied ‘make check’ command, which was successful. But the ‘nc-config --version’ command still gives me netCDF 4.3.31 that was built by using FC gfortran.
Then I tried to change the --prefix=usr/bin ( because I get olde4.3.3.1 version path by applying ’ which nc-config ’ command /usr/bin/nc-config.
But it is still not updating to the new version 4.7.4.
How can I delete all the files related to older version 4.3.3.1 or is there any other way to make the system recognize the new version 4…7.4?
Thanks