We have discovered that the environment-modules package has a problem with it's "modules" module. A "module load modules" command gives an error due to an erroneous "module use" command at line 27 in /usr/share/Modules/modulefiles/modules. wolfberry8% module load modules ModuleCmd_Use.c(186):ERROR:11: Usage is 'use [-a|--append] dir [dir ...]' modules(27):ERROR:102: Tcl command execution failed: module use Looking at the file, there is an incomplete "use" command at the end of the module. module use should be module use /usr/share/Modules
This was observed in environment-modules-3.2.3-2.fc6, which seems to be the same version in the 'development' directory.
I was messing around with the configure files when I realized the issue seems to be that VERSIONPATH is not set when --with-version-path is unset AND module versioning is off. But the "modules" module file uses the @VERSIONPATH@ macro. A quick fix that worked for me was to just specify the path on the configure line like this: %build -%configure --disable-versioning --prefix=%{_datadir} --exec-prefix=%{_datadir}/Modules +%configure --disable-versioning --prefix=%{_datadir} --exec-prefix=%{_datadir}/Modules --with-version-path=/usr/share/Modules/modulefiles make %{?_smp_mflags}
Fixed in 3.2.3-3.fc6