Installation error of yambo 5.1.1 version

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

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

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
Post Reply
lamia
Posts: 68
Joined: Mon Dec 05, 2016 5:09 pm

Installation error of yambo 5.1.1 version

Post by lamia » Wed Feb 22, 2023 1:21 am

Dear Yambo developers,

I've tried to install the latest version of Yambo 5.1.1. After using " ./ configure", I've done "make all" and obtained the following errors:

Code: Select all

"/home/pc/yambo-5.1.1/config/mk/local/rules.mk:9: recipe for target 'mod_pars.o' failed
make[2]: *** [mod_pars.o] Error 1
Fatal Error: Can't open module file ‘netcdf.mod’ for reading at (1): No such file or directory
	[driver] yambo (checking work to be done)
yambo linking failed. Check log/compile_yambo.log
Fatal Error: Can't open module file ‘netcdf.mod’ for reading at (1): No such file or directory
config/mk/global/actions/compile_yambo.mk:32: recipe for target 'yambo' failed
make[1]: *** [yambo] Error 1
yambo build failed"
Note: I use gfortran


Best,
Lamia
Taouil Lamia
University of Mohammed V
Faculty of science - Rabat
Morocco

User avatar
Nicola Spallanzani
Posts: 62
Joined: Thu Nov 21, 2019 10:15 am

Re: Installation error of yambo 5.1.1 version

Post by Nicola Spallanzani » Wed Feb 22, 2023 9:30 am

Dear Lamia,
could you send us all the content of the log directory and the file config/report?

Best,
Nicola
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

lamia
Posts: 68
Joined: Mon Dec 05, 2016 5:09 pm

Re: Installation error of yambo 5.1.1 version

Post by lamia » Wed Feb 22, 2023 2:13 pm

Dear Nicola,

Thank you for your answer. You'll find the required files in the attachment.

Best,
Lamia
You do not have the required permissions to view the files attached to this post.
Taouil Lamia
University of Mohammed V
Faculty of science - Rabat
Morocco

User avatar
Davide Sangalli
Posts: 610
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: Installation error of yambo 5.1.1 version

Post by Davide Sangalli » Wed Feb 22, 2023 5:17 pm

Most likely the compilation of the automatically downloaded netcdf library failed.

Best,
D.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

User avatar
Nicola Spallanzani
Posts: 62
Joined: Thu Nov 21, 2019 10:15 am

Re: Installation error of yambo 5.1.1 version

Post by Nicola Spallanzani » Thu Feb 23, 2023 9:31 am

Dear Lamia,
Davide is right, the problem is that the netcdf-c configuration fails due to this error:

Code: Select all

configure: error: Can't find or link to the z library. Turn off netCDF-4 and      DAP clients with --disable-netcdf-4 --disable-dap, or see config.log for errors.
so you have to find the way to install the zlib in your workstation.

After that I suggest to you to clean up the netcdf-c and netcdf-fortran internal directories:

Code: Select all

make clean netcdf
make clean netcdff
and then you can resume the "make all".

Best,
Nicola
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

Post Reply