Yikes -- sounds serious.  I'm the env-switcher package author, and I just
filed your text in a bug on the env-switcher sf project.  I'll investigate
and follow up there:

http://sourceforge.net/tracker/index.php?func=detail&aid=774192&group_id=51915&atid=465044


On Fri, 18 Jul 2003, Justin MacCallum wrote:

> Hi,
>
> I've been messing around with switcher scripts for some of the locally
> installed software on our cluster to allow our users to choose between
> different versions of our applications. I've written a modulefile for
> them and installed them via:
>
>       switcher prog --add-name version /path/to/program
>
> The modulefile is copied to /opt/env-switcher/share and shows up
> correctly when I do:
>       switcher
> and
>       switcher prog
>
> Additionally, I can use the 'module' command to load and unload the
> modules, and the environment is updated appropriately.
>
> The problem comes when I use switcher prog = prog-version --system
>
> Then every new shell invocation gives:
>
> mpi(70):ERROR:105: Unable to locate a modulefile for 'mpi/lam-6.5.9 ****
> prog/prog-version'
>
> If I remove the default entry from mpi with:
>       switcher mpi = none --system
>
> then I don't get the errors.
>
> In summary:
>       -I've created a new modulefile
>       -I can load/unload it fine using the module command
>       -Switcher if it's the _only_ module with a default attr
>       -If there is more than one tag with a default attribute it fails.
>
> I believe the failure occurs in
> /opt/modules/oscar-modules/switcher/1.0.9, near the end in the section:
>
>
> set modules_to_load [exec switcher --show-exec]
>   if { $modules_to_load != "" } {
>       module load $modules_to_load
>       #module load "[exec switcher --show-exec]"
>   }
>
> Unfortunately I don't really know tcl. Any ideas?
>
> Thanks,
> Justin
>
>

-- 
{+} Jeff Squyres
{+} [EMAIL PROTECTED]
{+} http://www.lam-mpi.org/


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Oscar-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to