Thank you for your reply.
setenv CFLAGS -I/usr/local/hdf5-1.8.18/include
setenv LDFLAGS -L/usr/local/hdf5-1.8.18/lib
setenv FC pgf90
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 olde220.127.116.11 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 18.104.22.168 or is there any other way to make the system recognize the new version 4…7.4?