Description of problem: I don't know to what extent the Lmod package is supposed to be compatible with environment-modules, but I've found a number of problems trying it. Probably there should at least be a README.fedora or something to explain. I'd got the impression from the docs that Lmod was a drop-in replacement, though they don't say as much. I had it installed together with environment-modules. Then I did "module avail", it took an age to rebuild the cache and then failed because the result is too complicated. It appears to have got into a recursion on /usr/share/Modules/modulefiles/modules which has stopped at some point many levels down. After removing environment-modules, various other things go wrong. User scripts and rpmbuild macros (%_openmpi_load), for instance, fail because they expect to source /etc/profile.d/modules.sh. Also /usr/share/Modules/init/.modulespath isn't checked, which is the appropriate place to set the path as far as I know, and at least what's always been used here. I don't know what the best thing to do is, but I guess Lmod and environment-modules should be alternatives and Lmod should be made compatible in those sort of aspects. Version-Release number of selected component (if applicable): Lmod-5.7.5-1.el6.noarch
I don't remember seeing the "Rebuilding cache" issue before, but I can reproduce it now. I'm pinging the Lmod author to get his take. I'd forgotten about the issue of sourcing /etc/profile.d/modules.sh directly. Alternatives would be ideal (that's how it is in Fedora), but I don't have control over environment-modules in RHEL. I thought I'd filed a bug for that, but I didn't see one. Filed bug #1243069.
Lmod-6.5.1-2.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a04322bf05
Lmod-6.5.1-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a04322bf05
Lmod-6.5.1-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.