Hello There,
I am trying to compile netcdf-c-4.7.2 and netcdf-fortran-4.5.2 on a Red Hat Enterprise Linux v9.1 machine. I am running into this error ‘configure: error: netcdf.h could not be found. Please set CPPFLAGS.’ I configured netcdf-c-4.7.2 with the following command:
./configure --prefix=$DIR/cetcdf --disable-netcdf-4 --disable-dap
After install I found the ‘netcdf.h’ file located at ‘/netcdf/include/netcdf.h’. I set my CPPFLAG using the following:
export CPPFLAGS="-I$DIR/netcdf/include"
I attempted to configure netcdf-fortran-4.5.2 with the following command:
./configure --prefix=$DIR/netcdf
After all of that I am still running into the same error. Can anyone please advise?
Best, J
I am trying to compile netcdf-c-4.7.2 and netcdf-fortran-4.5.2 on a Red Hat Enterprise Linux v9.1 machine. I am running into this error ‘configure: error: netcdf.h could not be found. Please set CPPFLAGS.’ I configured netcdf-c-4.7.2 with the following command:
./configure --prefix=$DIR/cetcdf --disable-netcdf-4 --disable-dap
After install I found the ‘netcdf.h’ file located at ‘/netcdf/include/netcdf.h’. I set my CPPFLAG using the following:
export CPPFLAGS="-I$DIR/netcdf/include"
I attempted to configure netcdf-fortran-4.5.2 with the following command:
./configure --prefix=$DIR/netcdf
After all of that I am still running into the same error. Can anyone please advise?
Best, J