Comments

7 Comments
karma

The following is an example of how module use works for me on RHEL 7 (i.e., MODULEPATH keeps it value within subshells):

[dfm@piazzolla ~]$ echo $0
-bash
[dfm@piazzolla ~]$ echo $MODULEPATH
/etc/modulefiles:/usr/share/modulefiles:/usr/share/Modules/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
[dfm@piazzolla ~]$ module use ~/modulefiles/Core
[dfm@piazzolla ~]$ echo $MODULEPATH
/home/dfm/modulefiles/Core:/etc/modulefiles:/usr/share/modulefiles:/usr/share/Modules/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
[dfm@piazzolla ~]$ bash
[dfm@piazzolla ~]$ echo $0
bash
[dfm@piazzolla ~]$ echo $MODULEPATH
/home/dfm/modulefiles/Core:/etc/modulefiles:/usr/share/modulefiles:/usr/share/Modules/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
[dfm@piazzolla ~]$ csh
[dfm@piazzolla ~]$ echo $0
csh
[dfm@piazzolla ~]$ echo $MODULEPATH
/home/dfm/modulefiles/Core:/etc/modulefiles:/usr/share/modulefiles:/usr/share/Modules/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
karma

Works for me. I can use module use correctly (i.e., it does not overwrite MODULEPATH). Thanks for the update!

Works for me. I can use module use correctly and no /usr/bin/ps errors show up upon starting a new shell. Thanks for the update!

BZ#1326075 Lmod packages prevent the correct function of `module use`, upon further bash/csh invocations
BZ#1333201 With Lmod-6.0.15-2.el6.noarch installed, bash logins error with /usr/bin/ps not found
karma

Looking good now. Thanks!

$ ssh localhost
...
$ echo $0
-bash
$ ml
No modules loaded

$ ml lmod
$ ml

Currently Loaded Modules:
  1) lmod/6.3.1

$ bash
$ echo $0
bash
$ ml

Currently Loaded Modules:
  1) lmod/6.3.1

$ csh
$ echo $0
csh
$ ml

Currently Loaded Modules:
  1) lmod/6.3.1
BZ#1326075 Lmod packages prevent the correct function of `module use`, upon further bash/csh invocations

Not yet :-)

/usr/bin/ps is hardcoded in /etc/profile.d/z00_lmod.sh

$ ssh localhost
...
-bash: /usr/bin/ps: No such file or directory
/bin/basename: missing operand
Try `/bin/basename --help' for more information.
$ grep '/usr/bin/ps' /etc/profile.d/*
/etc/profile.d/z00_lmod.sh:  my_shell=$(/usr/bin/ps -p $$ -ocomm=)
karma

Confirming dependency problem on Lmod-6.3.1-1.el6.x86_64.rpm

# rpm -i Lmod-6.3.1-1.el6.x86_64.rpm 
error: Failed dependencies:
        /usr/bin/ps is needed by Lmod-6.3.1-1.el6.x86_64

$ type ps
ps is hashed (/bin/ps)
$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.7 (Santiago)
karma

Works for me now. Thanks for the update.