Error installing Yambo 5.1.1

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
hosein
Posts: 6
Joined: Sat Apr 15, 2023 3:22 am

Error installing Yambo 5.1.1

Post by hosein » Wed Apr 26, 2023 7:46 pm

Hello developer of yambo
I encountered this error when I installed Yambo, please help me

Code: Select all

make[2]: *** [/home/hosein/Downloads/qe-7.1/yambo-5.1.1/config/mk/local/rules.mk:9: mod_pars.o] Error 1
Fatal Error: Cannot 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: Cannot open module file ‘netcdf.mod’ for reading at (1): No such file or directory
make[1]: *** [config/mk/global/actions/compile_yambo.mk:42: yambo] Error 1
yambo build failed
hosein hojjati
PhD student in condensed matter physics
Malayer State University
https://www.malayeru.ac.ir/portal/home/

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

Re: Error installing Yambo 5.1.1

Post by Nicola Spallanzani » Wed Apr 26, 2023 8:27 pm

Dear Hosein,
could you please send the file config.log, config/report and the content of the directory log?

I ask you also to sign your posts with your complete name and affiliation, this is a rule of the forum.

Best regards,
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

hosein
Posts: 6
Joined: Sat Apr 15, 2023 3:22 am

Re: Error installing Yambo 5.1.1

Post by hosein » Thu Apr 27, 2023 3:24 pm

Hello
Thanks
You do not have the required permissions to view the files attached to this post.
hosein hojjati
PhD student in condensed matter physics
Malayer State University
https://www.malayeru.ac.ir/portal/home/

User avatar
Daniele Varsano
Posts: 3773
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: Error installing Yambo 5.1.1

Post by Daniele Varsano » Fri Apr 28, 2023 8:41 am

Dear Hosein,
from the config.log it seems there are problems with your mpi compilers.
Are you able to compile other codes in parallel in your machine?
Check you compilers and try by configuring as:
./configure --prefix=/opt/hdf5/1.8.19-gnu/ FC=mpif90 CC=mpicc CXX=mpic++ CPP=gcc -E

parallel compilation is set by default.
here a guide to compilation with some examples:
https://www.yambo-code.eu/wiki/index.php/Installation

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
Nicola Spallanzani
Posts: 62
Joined: Thu Nov 21, 2019 10:15 am

Re: Error installing Yambo 5.1.1

Post by Nicola Spallanzani » Fri May 26, 2023 2:05 pm

Dear Hesain,
the problem is this one:

Code: Select all

configure: error: Cannot find m4 utility. Install m4 and try again.
If you are using Ubuntu you can install m4 with

Code: Select all

sudo apt install m4
After the m4 installation run a `make distclean` and again the configure.

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

hosein
Posts: 6
Joined: Sat Apr 15, 2023 3:22 am

Re: Error installing Yambo 5.1.1

Post by hosein » Sat May 27, 2023 5:41 pm

Code: Select all

f951: Warning: Nonexistent include directory ‘/home/hosein/Downloads/yambo-5.1.2/lib/external/gfortran/gfortran/v4/parallel/include’ [-Wmissing-include-dirs]
make[2]: *** [/home/hosein/Downloads/yambo-5.1.2/config/mk/local/rules.mk:9: mod_pars.o] Error 1
Fatal Error: Cannot 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: Cannot open module file ‘netcdf.mod’ for reading at (1): No such file or directory
make[1]: *** [config/mk/global/actions/compile_yambo.mk:42: yambo] Error 1
yambo build failed
hosein hojjati
PhD student in condensed matter physics
Malayer State University
https://www.malayeru.ac.ir/portal/home/

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

Re: Error installing Yambo 5.1.1

Post by Nicola Spallanzani » Mon May 29, 2023 8:34 am

Dear Hesain,
did you run the "make distclean" command?
Could you send again the content of the log directory and the files config.log, config/report and config/setup?

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

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: Error installing Yambo 5.1.1

Post by Davide Sangalli » Mon May 29, 2023 9:57 am

Dear Hesain,
the issue might be due to a problem we just fixed in branch 5.2 on github.

Can you try to download and compile the last version of such branch?
https://github.com/yambo-code/yambo/tree/5.2

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/

Post Reply