Page 1 of 1
yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’
Posted: Sat May 16, 2026 3:04 am
by Tasnim
Hello,
I am trying to install yambo 5.3 on Rocky Linux 9.2 (Blue Onyx), gcc 11.3.1 . I downloaded the tar file from github and used the following commands
make netcdf
make hdf5
make yambo
and got the following error:
Code: Select all
yambo linking failed. Check log/compile_yambo.log
Fatal Error: Cannot open module file ‘devxlib_environment.mod’ for reading at (1): No such file or directory
make: *** [config/mk/global/actions/compile_yambo.mk:43: yambo] Error 1
I also tried to intall yambo on my pc, Ubuntu 22.0.4, gcc 11.4.0, and got another error. log file is attached here.
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [NETCDF]
make: *** [config/mk/global/actions/compile_yambo.mk:43: yambo] Error 1
I have attached the log file here.
Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’
Posted: Sat May 16, 2026 4:15 pm
by andrea.ferretti
Dear Tasnim,
the error is triggered by devicexlib being missing (eg missing module devxlib_environment.mod).
This is usually due to a problem in the compilation of devxlib, which does not stop the compilation, leading to the above problem.
Here I see you compile separately netcdf and hdf5. What happens you you try to compile devxlib in the same way ?
If something went wrong during devxlib compilation, in order to go ahead, you may need to
remove everything but Makefile.loc. in yambo/lib/devxlib
(if nothing is there, it means the lib compilation was not attempted)
then, issue make devxlib
take care
Andrea
Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’
Posted: Sun May 17, 2026 3:32 am
by Tasnim
Hello Andrea,
Thanks for your response. I tried to make devxlib separately and got the following error.
Code: Select all
[ftasn@login001-lakeshore yambo-5.3]$ make devxlib
\t[devicexlib-0.8.5] configuration
\t[devicexlib-0.8.5] all compilation
\t[devicexlib-0.8.5] installation
chmod: cannot access '/home/ftasn/las_hyowon_link/common/yambo-5.3/lib/external/gfortran/gfortran/no_gpu/lib*/*devXlib*a': No such file or directory
How to fix this?
Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’
Posted: Sun May 17, 2026 11:24 am
by Nicola Spallanzani
Dear Tasnim,
inside the log/ directory, in the root dir of the yambo project, there are the log file concerning the compilation procedures of the libraries and of yambo. Please, send us the error reported in the log files of devicexlib.
Best,
Nicola
Re: yambo linking failed: Fatal Error: Cannot open module file ‘devxlib_environment.mod’
Posted: Mon May 18, 2026 6:50 pm
by Tasnim
Hello,
devicexlib was configure successfully but parrallel environment was not detected.
Code: Select all
The following libraries have been found:
BLAS_LIBS=/home/ftasn/las_hyowon_link/common/yambo-5.3/lib/external/gfortran/gfortran/lib/libblas.a
LAPACK_LIBS=/home/ftasn/las_hyowon_link/common/yambo-5.3/lib/external/gfortran/gfortran/lib/liblapack.a
Please check if this is what you expect.
If any libraries are missing, you may specify a list of directories
to search and retry, as follows:
./configure LIBDIRS="list of directories, separated by spaces"
Parallel environment not detected \(is this a parallel machine?\).\
Configured for compilation of serial executables.
--------------------------------------------------------------------
configure: success
But devicexlib was not installed. I have attached the log file here.