Hmm, I don't see an easy answer here. What I can think of is modifying your Lmod easyconfig to update a link at say /trinity/shared/easybuild/software/Lmod/lmod -> %(installdir)s/lmod/lmod You can then use that link in your profile scripts since it is static.
You need to be a bit careful but this might work (untested): postinstallcmds = 'ln -sfn %(installdir)s/.. %(installdir)s/lmod/lmod' On Wed, 23 Jan 2019 at 10:56, Loris Bennett <[email protected]<mailto:[email protected]>> wrote: Hi, On Centos 7 I installed EB using the system version of Lmod (6.6.3). I have now installed Lmod 7.3 via its easyconfig. I now have the directory /trinity/shared/easybuild/software/Lmod/7.3/lmod/7.3 which contains 7.3 lmod -> 7.3 I now need to link the init scripts to /etc/profile.d. However, since the path with the link /trinity/shared/easybuild/software/Lmod/7.3/lmod/lmod still contains the version, I'm still stuck with the version dependency. So what's the canonical solution? Linking /trinity/shared/easybuild/software/Lmod/7.3/lmod/lmod to, say, /trinity/shared/easybuild/apps/lmod and then linking /etc/profile.d/z00_lmod.sh to /trinity/shared/easybuild/apps/lmod/init/profile ? Cheers, Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email [email protected]<mailto:[email protected]> -- Dr. Alan O'Cais E-CAM Software Manager Juelich Supercomputing Centre Forschungszentrum Juelich GmbH 52425 Juelich, Germany Phone: +49 2461 61 5213 Fax: +49 2461 61 6656 E-mail: [email protected]<mailto:[email protected]> WWW: http://www.fz-juelich.de/ias/jsc/EN ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------

