Hi,
this is my first post on the list. I'm using module environment for a
while, but I'm stuck to create a module for a specific software.
The sotfware requires some additional libraries managed with module
environment so, for example, in my user module file I use:
if [ module-info mode load ] {
module load GCC14/irl-2024.11.26
}
to load this required irl-2024.11.26 module which is system wide.
Then, in my user's module file, I need to set a variable based on the
environment set up with the above module. With bash I would write:
IRL_DIR=$(pkg-config --variable=prefix irl_fortran)
as the pkg-config path has been setup when loading the
GCC14/irl-2024.11.26 module.
Is there a way to do this in my module file to ensure that the IRL_DIR
variable will be set dynamicaly and correctly with the irl loaded module ?
Thank you for your advices.
Patrick
|