error in compilation of yambo with NETCDF

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? This is the place to look.

Moderators: Daniele Varsano, andrea.ferretti, andrea marini, Conor Hogan, myrta gruning

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(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

error in compilation of yambo with NETCDF

Postby amiri » Sat Nov 27, 2010 10:09 am

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
amiri
 
Posts: 1
Joined: Thu Nov 25, 2010 5:55 pm

Re: error in compilation of yambo with NETCDF

Postby Daniele Varsano » Sat Nov 27, 2010 10:19 am

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
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/
User avatar
Daniele Varsano
 
Posts: 2060
Joined: Tue Mar 17, 2009 2:23 pm

Re: error in compilation of yambo with NETCDF

Postby myrta gruning » Sat Nov 27, 2010 4:11 pm

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
Dr Myrta GrĂ¼ning
Atomistic Simulation Centre
Queen's University Belfast - Northern Ireland

http://www.researcherid.com/rid/B-1515-2009
User avatar
myrta gruning
 
Posts: 305
Joined: Tue Mar 17, 2009 11:38 am


Return to Compilation

Who is online

Users browsing this forum: No registered users and 1 guest