How do I prevent module load conflicts (environment modules)?
2
votes
0
answers
1250
views
I am setting up [Environment Modules](http://modules.sourceforge.net/index.html) for a server and have two modules:
test1
and test2
.
The test1
module needs java/1.7.0
and test2
needs java/1.8.0
. If I use prereqs
/conflicts
, as seems to be standard practice, then I must load java/1.7.0
before loading test1
but if I load test2
afterwards and module switch java
to 1.8.0, test1
remains loaded and may still be functional in a warped manner.
The user, of course, has to do the module switch
themselves but is there any way to avoid this scenario so that test1
is unloaded if its prereq is.
It may be fairly easy to keep track of in the above scenario but if there are lots of tools each with multiple dependencies, I expect problems to arise. Is there some functionality of Environment Modules I'm not aware of or misunderstanding?
Asked by Tobi
(21 rep)
Feb 15, 2019, 12:50 PM
Last activity: May 26, 2025, 11:14 AM
Last activity: May 26, 2025, 11:14 AM