Page 1 of 1

Error installing Yambo 5.1.1

Posted: Wed Apr 26, 2023 7:46 pm
by hosein
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

Re: Error installing Yambo 5.1.1

Posted: Wed Apr 26, 2023 8:27 pm
by Nicola Spallanzani
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

Re: Error installing Yambo 5.1.1

Posted: Thu Apr 27, 2023 3:24 pm
by hosein
Hello
Thanks

Re: Error installing Yambo 5.1.1

Posted: Fri Apr 28, 2023 8:41 am
by Daniele Varsano
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

Re: Error installing Yambo 5.1.1

Posted: Fri May 26, 2023 2:05 pm
by Nicola Spallanzani
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

Re: Error installing Yambo 5.1.1

Posted: Sat May 27, 2023 5:41 pm
by hosein

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

Re: Error installing Yambo 5.1.1

Posted: Mon May 29, 2023 8:34 am
by Nicola Spallanzani
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

Re: Error installing Yambo 5.1.1

Posted: Mon May 29, 2023 9:57 am
by Davide Sangalli
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.