Hello Jeff,

I used the last RPM from the CVS HEAD for env-switcher as well as for
LAM : env-switcher-1.0.12-1

I used the last LAM RPMs too : lam-switcher-modulefile-7.0.6-1.src.rpm

Ben
* Jeff Squyres <[EMAIL PROTECTED]> [04-07-02 09:04]:
> Actually, I had already fixed this in the latest switcher RPM that is at 
> the CVS HEAD.  I think NCSA brought up this issue a while ago (several 
> months?), so I fixed it there.  You can probably use that RPM (or 
> recompile the SRPM).
> 
> I seem to recall doing some other fixes and updates, too, so that RPM 
> might be preferable.
> 
> 
> On Fri, 2 Jul 2004, Benoit des Ligneris wrote:
> 
> >Hello Jeff,
> >
> >I did a new rpm that fixes the problem :
> >http://www.revolutionlinux.com/downloads/OSCAR/switcher/
> >
> >If you are happy with this, please use it :-)
> >
> >I did not antything because I don't want to break something else...
> >
> >Ben
> >* Benoit des Ligneris <[EMAIL PROTECTED]> [04-07-02 
> >08:31]:
> >>Hello Jeff,
> >>
> >>I think that we have found the bug ;-)
> >>
> >>Bash don't like function names with "-"
> >>
> >>For instance switcher-reload
> >>
> >>You can have an alias called "switcher-reload" and this if fine but you
> >>can't define a function called "switcher-reload" or you will have an
> >>error...
> >>
> >>Please try this : cut & paste the following line (or source a file) in a
> >>bash session
> >>
> >>1)
> >>switcher-reload() {
> >>cd /opt/env-switcher/share/env-switcher > /dev/null ; module unload */* ; 
> >>module load switcher ; cd - > /dev/null;
> >>}
> >>
> >>2)
> >>switcher_reload() {
> >>cd /opt/env-switcher/share/env-switcher > /dev/null ; module unload */*
> >>; module load switcher ; cd - > /dev/null;
> >>}
> >>
> >>However, you can have "-" in alias names (i.e. :
> >>alias switcher-reload="cd /opt/env-switcher/share/env-switcher > 
> >>/dev/null ; module unload */* ; module load switcher ; cd - > /dev/null;"
> >>
> >>is fine !
> >>
> >>So I think that switcher-reload should be renamed "switcher_reload" or
> >>"switcherReload".
> >>
> >>Can you fix the switcher RPM ?
> >>
> >>Thanks by advance,
> >>
> >>Ben
> >>
> >>* Jeff Squyres <[EMAIL PROTECTED]> [04-07-01 06:57]:
> >>>This stuff is always sticky to debug.  :-(
> >>>
> >>>Is there a way that I could get a guest account on your machines to debug
> >>>this?
> >>>
> >>>
> >>>On Thu, 1 Jul 2004, Benoit des Ligneris wrote:
> >>>
> >>>>Hello,
> >>>>
> >>>>It seems something don't work as expected with switcher on RHAS 3.0
> >>>>
> >>>>I recompiled switcher and the modules I tried to use without problem
> >>>>however, one scriptlet does not work as expected. I suspect the PATH or
> >>>>some environment variable.
> >>>>
> >>>>For instance :
> >>>>rpm -ivh lam-with-gm-oscar-module-7.0-3.i386.rpm
> >>>>Preparing...                ###########################################
> >>>>[100%]
> >>>> 1:lam-with-gm-oscar-modul###########################################
> >>>> [100%]
> >>>> /var/tmp/rpm-tmp.57205: line 3: `switcher-reload': not a valid
> >>>> identifier
> >>>> error: %post(lam-with-gm-oscar-module-7.0-3) scriptlet failed, exit
> >>>> status 2
> >>>>
> >>>>This cause both step 3 to fail as well as the SIS image creation.
> >>>>
> >>>>Moreover, the switcher tag is not created !
> >>>>
> >>>>I asked for more information :
> >>>>rpm -ivh lam-with-gm-oscar-module-7.0-3.i386.rpm -vv
> >>>>
> >>>>Here is the relevant output :
> >>>>D:   install: %post(lam-with-gm-oscar-module-7.0-3) asynchronous
> >>>>scriptlet start
> >>>>D:   install: %post(lam-with-gm-oscar-module-7.0-3)     execv(/bin/sh)
> >>>>pid 19356
> >>>>+ . /etc/profile.d/00-modules.sh
> >>>>++ test '' = ''
> >>>>++ MODULE_OSCAR=foo
> >>>>++ MODULE_OSCAR_NEED_RESET=0
> >>>>+++ whoami
> >>>>++ MODULE_OSCAR_USER_NOW=root
> >>>>++ test root '!=' root
> >>>>++ test sh '!=' sh
> >>>>++ test 0 = 1
> >>>>++ export MODULE_SHELL=sh
> >>>>++ MODULE_SHELL=sh
> >>>>++ test 3.1.6 = ''
> >>>>++ modules_shell=sh
> >>>>++ eval 'module() { eval `/opt/modules/$MODULE_VERSION/bin/modulecmd sh
> >>>>$*`; }'
> >>>>++ unset modules_shell
> >>>>++ module load oscar-modules
> >>>>+++ /opt/modules/3.1.6/bin/modulecmd sh load oscar-modules
> >>>>++ eval 'PVM_ARCH='\''LINUX'\'';export'
> >>>>'PVM_ARCH;PATH='\''/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/env-switcher/bin:/opt/hdf5-oscar-1.6.0/bin/:/opt/kernel_picker/bin:/opt/pvm3/lib:/opt/pvm3/lib/LINUX:/opt/pvm3/bin/LINUX'\'';export'
> >>>>'PATH;MANPATH='\'':/opt/modules/default/man:/opt/env-switcher/man:/opt/kernel_picker/man:/opt/pvm3/man'\'';export'
> >>>>'MANPATH;PVM_ROOT='\''/opt/pvm3'\'';export'
> >>>>'PVM_ROOT;_LMFILES_='\''/opt/modules/oscar-modulefiles/switcher/1.0.12:/opt/modules/modulefiles/oscar-modules/1.0.5:/opt/modules/oscar-modulefiles/hdf/1.6.0:/opt/modules/oscar-modulefiles/kernel_picker/1.4.2:/opt/modules/oscar-modulefiles/pvm/3.4.4+11'\'';export'
> >>>>'_LMFILES_;LOADEDMODULES='\''switcher/1.0.12:oscar-modules/1.0.5:hdf/1.6.0:kernel_picker/1.4.2:pvm/3.4.4+11'\'';export'
> >>>>'LOADEDMODULES;PVM_RSH='\''ssh'\'';export' 'PVM_RSH;.'
> >>>>'/tmp/M_od_MdeIqX;/bin/rm' -f '/tmp/M_od_MdeIqX;'
> >>>>+++ PVM_ARCH=LINUX
> >>>>+++ export PVM_ARCH
> >>>>+++
> >>>>PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/env-switcher/bin:/opt/hdf5-oscar-1.6.0/bin/:/opt/kernel_picker/bin:/opt/pvm3/lib:/opt/pvm3/lib/LINUX:/opt/pvm3/bin/LINUX
> >>>>+++ export PATH
> >>>>+++
> >>>>MANPATH=:/opt/modules/default/man:/opt/env-switcher/man:/opt/kernel_picker/man:/opt/pvm3/man
> >>>>+++ export MANPATH
> >>>>+++ PVM_ROOT=/opt/pvm3
> >>>>+++ export PVM_ROOT
> >>>>+++
> >>>>_LMFILES_=/opt/modules/oscar-modulefiles/switcher/1.0.12:/opt/modules/modulefiles/oscar-modules/1.0.5:/opt/modules/oscar-modulefiles/hdf/1.6.0:/opt/modules/oscar-modulefiles/kernel_picker/1.4.2:/opt/modules/oscar-modulefiles/pvm/3.4.4+11
> >>>>+++ export _LMFILES_
> >>>>+++
> >>>>LOADEDMODULES=switcher/1.0.12:oscar-modules/1.0.5:hdf/1.6.0:kernel_picker/1.4.2:pvm/3.4.4+11
> >>>>+++ export LOADEDMODULES
> >>>>+++ PVM_RSH=ssh
> >>>>+++ export PVM_RSH
> >>>>+++ . /tmp/M_od_MdeIqX
> >>>>/var/tmp/rpm-tmp.91773: line 3: `switcher-reload': not a valid
> >>>>identifier
> >>>>D:   install: waitpid(19356) rc 19356 status 200 secs 0.128
> >>>>error: %post(lam-with-gm-oscar-module-7.0-3) scriptlet failed, exit
> >>>>status 2
> >>>>D: closed   db index       /var/lib/rpm/Filemd5s
> >>>>D: closed   db index       /var/lib/rpm/Sha1header
> >>>>D: closed   db index       /var/lib/rpm/Sigmd5
> >>>>D: closed   db index       /var/lib/rpm/Installtid
> >>>>D: closed   db index       /var/lib/rpm/Provideversion
> >>>>D: closed   db index       /var/lib/rpm/Requireversion
> >>>>D: closed   db index       /var/lib/rpm/Dirnames
> >>>>D: closed   db index       /var/lib/rpm/Providename
> >>>>D: closed   db index       /var/lib/rpm/Requirename
> >>>>D: closed   db index       /var/lib/rpm/Group
> >>>>D: closed   db index       /var/lib/rpm/Basenames
> >>>>D: closed   db index       /var/lib/rpm/Name
> >>>>D: closed   db index       /var/lib/rpm/Packages
> >>>>D: closed   db environment /var/lib/rpm/Packages
> >>>>
> >>>>
> >>>>Here is the content of the %post scriptlet :
> >>>>cat /var/tmp/rpm-tmp.91773
> >>>>set -x
> >>>>
> >>>># Add ourselves into the switcher repository.  Run the modules and
> >>>># switcher setup scripts because this RPM install may be part of a
> >>>># massive "rpm -ivh ..." that includes the modules and switcher RPMs
> >>>># themselves -- in which case, the environment for those packages will
> >>>># not yet have been setup.
> >>>>
> >>>>. /etc/profile.d/00-modules.sh
> >>>>switcher mpi --add-name lam-with-gm-7.0 /opt/lam-with-gm-7.0/share/lam
> >>>>--force --silent
> >>>>
> >>>>
> >>>>#############################################################################
> >>>>#
> >>>># Preun (module) Section
> >>>>#
> >>>>#############################################################################
> >>>>
> >>>>If i run the scriplet (as root) all is fine :
> >>>>sh /var/tmp/rpm-tmp.91773
> >>>>+ . /etc/profile.d/00-modules.sh
> >>>>++ test foo = ''
> >>>>+ switcher mpi --add-name lam-with-gm-7.0 /opt/lam-with-gm-7.0/share/lam
> >>>>--force --silent
> >>>>
> >>>>And then :
> >>>>>switcher mpi --list
> >>>>mpich-ch_p4-gcc-1.2.5.10
> >>>>lam-with-gm-7.0
> >>>>
> >>>>So I guess this is a $PATH problem ? Or environment variable ?
> >>>>
> >>>>Anyway, any hint/ideas ?
> >>>>
> >>>>Ben
> >>>>
> >>>>--
> >>>>Benoit des Ligneris Ph. D.
> >>>>President de Revolution Linux     http://www.revolutionlinux.com/
> >>>>OSCAR Chair                    http://oscar.openclustergroup.org/
> >>>>Chef de projet EduLinux                  http://www.edulinux.org/
> >>>>
> >>>>
> >>>>-------------------------------------------------------
> >>>>This SF.Net email sponsored by Black Hat Briefings & Training.
> >>>>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> >>>>digital self defense, top technical experts, no vendor pitches,
> >>>>unmatched networking opportunities. Visit www.blackhat.com
> >>>>_______________________________________________
> >>>>Oscar-devel mailing list
> >>>>[EMAIL PROTECTED]
> >>>>https://lists.sourceforge.net/lists/listinfo/oscar-devel
> >>>>
> >>>
> >>>--
> >>>{+} Jeff Squyres
> >>>{+} [EMAIL PROTECTED]
> >>>{+} http://www.lam-mpi.org/
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.Net email sponsored by Black Hat Briefings & Training.
> >>>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> >>>digital self defense, top technical experts, no vendor pitches,
> >>>unmatched networking opportunities. Visit www.blackhat.com
> >>>_______________________________________________
> >>>Oscar-devel mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/oscar-devel
> >>
> >>--
> >>Benoit des Ligneris Ph. D.
> >>President de Revolution Linux     http://www.revolutionlinux.com/
> >>OSCAR Chair                    http://oscar.openclustergroup.org/
> >>Chef de projet EduLinux                  http://www.edulinux.org/
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email sponsored by Black Hat Briefings & Training.
> >>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> >>digital self defense, top technical experts, no vendor pitches,
> >>unmatched networking opportunities. Visit www.blackhat.com
> >>_______________________________________________
> >>Oscar-devel mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/oscar-devel
> >
> >--
> >Benoit des Ligneris Ph. D.
> >President de Revolution Linux     http://www.revolutionlinux.com/
> >OSCAR Chair                    http://oscar.openclustergroup.org/
> >Chef de projet EduLinux                  http://www.edulinux.org/
> >
> 
> -- 
> {+} Jeff Squyres
> {+} [EMAIL PROTECTED]
> {+} http://www.lam-mpi.org/
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Oscar-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/oscar-devel

-- 
Benoit des Ligneris Ph. D.          
President de Revolution Linux     http://www.revolutionlinux.com/
OSCAR Chair                    http://oscar.openclustergroup.org/
Chef de projet EduLinux                  http://www.edulinux.org/


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to