Well, I built modules on vanilla tcl/tk 8.3.3 and tclx 8.3.0, all with
workshop 5.0 on solaris 2.6
It's a pretty much standard stuff, the null module is
---------------------------------------------------------------------------------
#%Module1.0#####################################################################
##
## null modulefile
##
proc ModulesHelp { } {
global version
puts stderr "\tThis module does absolutely nothing."
puts stderr "\tIt's meant simply as a place holder in your"
puts stderr "\tdot file initialization."
puts stderr "\n\tVersion $version\n"
}
module-whatis "does absolutely nothing"
# for Tcl script use only
set version 3.1.5
---------------------------------------------------------------------------------
It does the job, producing
setenv _LMFILES_ '/usr/share/lib/modules/modulefiles/null';setenv LOADEDMODULES 'null';
whether I have "" around 3.1.5 or not.
It gets quiet when "version ..." is not the last line, e.g.
---------------------------------------------------------------------------------
#%Module1.0#####################################################################
##
## null modulefile
##
proc ModulesHelp { } {
global version
puts stderr "\tThis module does absolutely nothing."
puts stderr "\tIt's meant simply as a place holder in your"
puts stderr "\tdot file initialization."
puts stderr "\n\tVersion $version\n"
}
# for Tcl script use only
set version 3.1.5
module-whatis "does absolutely nothing"
---------------------------------------------------------------------------------
Why this stuff is position-sensitive, it beats me (apparently
something with the way tcl decides where a statement ends). It is
actually sufficient to add an empty line at the end of the original
modulefile.
Thanks for all who responded,
Gintas
> Gintautas Grigelionis wrote:
>
> > module load null produces
> >
> > null(18):ERROR:102: Tcl command execution failed: 3.1.5
> >
> > what does that mean?
>
> Hello, Gintautas.
>
> I'm guessing that somehow during the make process, your
> "null" modulefile (built from modulefile.in) wasn't built
> correctly. Could you post the null modulefile, and give
> some other info like which operating system you're using,
> which version of Tcl and gcc, etc.? Just in case there's
> an issue on a platform no one knows about yet.
>
> The string "3.1.5" only appears in one place in the null
> modulefile, so I think the 3.1.5 must be in the wrong
> place. The last line of the file should look like
>
> set version "3.1.5"
>
> which is standard Tcl variable setting. I can reproduce
> your error message if I delete the "set version" part of
> that line, so I think that must be what happened in your
> null modulefile as well.
>
> Hope this helps,
>
> - Leo Butler
|