Page 1 of 1

Problem with NetCDF

Posted: Mon Mar 15, 2010 11:55 pm
by bbosak
Hi,

When I wanted to build Abinit (6.0.2) using gfortran and openmpi which were installed in a non standard locations, I have received:

ncfortran.h:26:42: error: NF_INT_IS_C_... not defined: No such file or directory

I think that this is a problem with the build system: the LD_LIBRARY_PATH is cleared by the make script. Could you confirm this?

Thanks,
Bartek

Re: Problem with NetCDF

Posted: Tue Mar 16, 2010 10:26 am
by pouillon
The problem does not come from LD_LIBRARY_PATH, but from NetCDF. I've changed the subject of this thread accordingly.

What happens is that NetCDF is unable to detect the properties of your compiler. The problem is not related to Abinit.

You could do one of the following:
  • contact the NetCDF developers to get help from them;
  • use the --with-netcdf-includes and --with-netcdf-libs options if you have NetCDF installed on your machine;
  • disable NetCDF support in Abinit (--disable-netcdf).