Page 1 of 1

link Yambo4.4.0 to NetCDF and HDF5

Posted: Thu Sep 26, 2019 10:47 am
by el16yz
Dear Yambo users,

I am trying to compile Yambo4.4.0 with NetCDF and HDF5 by ./configure --with-netcdf-lib=<$NETCDF_HOME/lib> --with-netcdf-include=<$NETCDF_HOME/include> --enable-netcdf-hdf5. But the problem occurs as:
configure: WARNING: unrecognized options: --with-netcdf-lib
ifort version 17.0.1
configure: WARNING: unrecognized options: --with-netcdf-lib
It will be very appreciated if you can solve this problem for me.

Best,
Yang Zhou

------
  • Yang Zhou
    PhD student
    University of Leeds
    United Kingdom

Re: link Yambo4.4.0 to NetCDF and HDF5

Posted: Thu Sep 26, 2019 10:52 am
by Daniele Varsano
Dear Yang,

--with-netcdf-libs
instead of
--with-netcdf-lib

but probably you can skip it as they were already recognized in your previous compilation.

Best,
Daniele

Re: link Yambo4.4.0 to NetCDF and HDF5

Posted: Thu Sep 26, 2019 11:18 am
by el16yz
Dear Daniele,

Thank you. You really help me a lot. Yes, you are right. It is

--with-netcdf-libs
rather than
--with-netcdf-lib

It will be good if you can modify it in http://www.yambo-code.org/download/installing.php on "NetCDF support" section in the case of confusing other Yambo usesr.

And how do you know they have been linked? After I try the configure script you suggest, it appears:
./configure --with-netcdf-libs=<$NETCDF_HOME/lib> --with-netcdf-include=<$NETCDF_HOME/include> --enable-netcdf-hdf5
ifort version 17.0.1
Is that mean my compile is successful?

Best,
Yang

Re: link Yambo4.4.0 to NetCDF and HDF5

Posted: Thu Sep 26, 2019 11:22 am
by Daniele Varsano
Dear Yang,
And how do you know they have been linked?
Because they are mandatory, in case they were not linked your previous compilation would have stop.
The --with-netcdf* are needed in the case they are not located in standard location and they are not recognized by the configure.
Daniele