Page 1 of 1
error in compilation of yambo with NETCDF
Posted: Sat Nov 27, 2010 10:09 am
by amiri
Dear all
I have started to work with yambo recently,
I successfully install the NETCDF interface with congratulation message,
but in an installation of yambo in the end of "make yambo interfaces" stage i
encounter with the error message below:
ctions.c:53: more undefined references to `curl_easy_setopt' follow
make[1]: *** [yambo] Error 1
make[1]: Leaving directory `/home/amiri/yambo-3.2.2-rev.5/driver'
make: *** [yambo] Error 2
Please guide me
Any suggestion will be appreciated
thanks
Re: error in compilation of yambo with NETCDF
Posted: Sat Nov 27, 2010 10:19 am
by Daniele Varsano
Dear Amiri,
Welcome on board,
first of all let me ask you to fill you signature in your profile with you affiliation, this is a rule of the forum.
Next, this is not easy to individuate the problem you are encountering with that few information.
Please, post your config.log and provide some more information as:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
in this way we can try to find the problem,
Best,
Daniele
Re: error in compilation of yambo with NETCDF
Posted: Sat Nov 27, 2010 4:11 pm
by myrta gruning
Dear Amiri
I guess you are using the latest netcdf. I think I encountered the same problem.
Netcdf links by default the curl libraries and then it requires them when you link netcdf to yambo.
This should probably fixed in the Makefile in the future.
For the moment there are two options.
First option hacking the config/setup file adding -lcurl after -lnetcdf
Second option, that is the cleanest, is to recompile netcdf from scratch reconfiguring it using
--disable-dap --without-curl
since these features are not used by yambo and are those that are causing the problem with linking.
I hope this may help you.
In the future, when having problems with compilation, please follow the forum rules reported on top of the page as suggested by Daniele. When problems are occurring with netcdf it is better to specify as well the version of netcdf, compiler used (note that has to be the same as for yambo) and configure options.
Also please fill in your signature!
Regards,
m