I'm trying to build the CESM2.1.3 on my own linux platform "centos7-linux". When I'm trying to run the ./build.case, some error occurred. "Calling /home/yhj/cesm/cime/src/build_scripts/buildlib.mct."was failed. The build log show:
NETCDF not found: Define NETCDF_PATH or NETCDF_C_PATH and NETCDF_FORTRAN_PATH in config_machines.xml or config_compilers.xml. Stop.
I don't understand why this error would happen because I've set them in my config_machine.xml and config_compiler.xml before I run the ./case.build.
Another problem puzzled me is that if I type my NETCDF_PATH manully like this "export NETCDF_C_PATH=/home/yhj/program/netcdf-c/bin export NETCDF_FORTRAN_PATH=/home/yhj/program/netcdf-f/bin", the buildlib.mct can run successfully but the build.pio occur the same mistake:
ERROR: CIME models require NETCDF in PIO build
Attached is my config_machine.xml and config_compiler.xml file. I really appreciate your help.
Best
Jasper
NETCDF not found: Define NETCDF_PATH or NETCDF_C_PATH and NETCDF_FORTRAN_PATH in config_machines.xml or config_compilers.xml. Stop.
I don't understand why this error would happen because I've set them in my config_machine.xml and config_compiler.xml before I run the ./case.build.
Another problem puzzled me is that if I type my NETCDF_PATH manully like this "export NETCDF_C_PATH=/home/yhj/program/netcdf-c/bin export NETCDF_FORTRAN_PATH=/home/yhj/program/netcdf-f/bin", the buildlib.mct can run successfully but the build.pio occur the same mistake:
ERROR: CIME models require NETCDF in PIO build
Attached is my config_machine.xml and config_compiler.xml file. I really appreciate your help.
Best
Jasper