I’m confused by this (below, from an install document) - some software I’m using (NASA atmosphere software) calls for installing “modules” - and I’m unfamiliar with this approach. Am I supposed to create the ‘modules’ (listed in bold below)? I believe the command ‘module’ below is different for opensuse? I found the Modules package, but there is no command ‘module’ in it. It is apparently used to set paths (???) for libs and compilers? I always thought that was done with PATH and other environment variables. Can anyone help me understand what is going on here? Thanks! Patricia
"To compile/build the model first setup your module environment, e.g.:
Am 06.10.2012 23:46, schrieb PattiMichelle:
> module purge module load comp/intel-10.1.021lib/mkl-9.1.023
> mpi/impi-3.2.011"
Despite my question about the original software and readme:
Have you even installed the proprietary intel compiler version 10 and
the math kernel library version 9? You need of course get that from
intel (gratis for private use only). I used them quite a bit a few years
ago to test compatibility of my code with it.
Note that this are stone age old versions, the mkl is at version 11 now
and the intel compiler at version 13, so I am not even sure these old
versions are still available and you have probably to check if what you
want to install is compatible to supported versions or if you can use
gcc compilers and other blas libraries with it.
–
PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
eCAFE 800: oS 12.2 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10
Thank you for the replies!! I am trying to get some so docs on their use of MODULES - the refer to the sourceforge modules package. Modules – Software Environment Management
Now, it’s always been my understanding that in Opensuse - modules are kernel-level things, not environment management things. I guess I’m a slow learner! :X
Does anyone know how to use the “Modules” package under opensuse? I think I have to set an
alias to the standard “module load” and “module unload” commands…
And from YaST:
*The Modules package provides for dynamic modification of a user’s environment with module files. Each module file contains the information needed to configure the shell for an application. Once the package is initialized, the environment can be modified dynamically on a per-module basis using the module command that interprets module files. Typically, module files instruct the module command to alter or set shell environment variables, such as PATH or MANPATH. Module files may be shared by many users on a system and users may have their own collection to supplement or replace the shared module files. The modules environment is common on SGI/Crays and many workstation farms.
*
There are only two exe’s - and what do I do with the .sh/.csh files?
File Iist in the Modules package:
Am 26.10.2012 18:06, schrieb PattiMichelle:
>
> Does anyone know how to use the “Modules” package under opensuse? I
> think I have to set an
> alias to the standard “module load” and “module unload” commands…
>
after you have installed the package Modules you need to log out and log
in again such that /etc/profile.d/modules.sh becomes effective, after
that module is available in your shell (this is for bash, I have not
tested the .csh version).
–
PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server
Am 26.10.2012 19:36, schrieb PattiMichelle:
> I added an alias to .bashrc… alias module=‘modulecmd bash’
That is not how it works, you seem to overwrite what the automatic
definition of /etc/profile.d/modules.sh does for you. It is defined as a
function not as an alias.
Based on what documentation did you add that alias?
–
PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server
Yes, that is what I mean I am trying to figure out how to use the Modules package (see YaST). I don’t know what i am doing or how to use this package. It is not installed by default in opensuse 12.1, but probably should be given that many softwares are expecting it to be present.
The manpage said:
** Man page of MODULE: "Package Initialization***
The Modules package and the module command are initialized when a shell-specific initialization script is sourced into the shell. The script creates the module command, either as an alias or shell function, creates Modules environment variables, and if enabled to do so, a snapshot of the environment is saved as either (if BEGINENV=1) $HOME/.modulesbeginenv or (if BEGINENV=99) whatever $MODULESBEGINENV points to."*
The above is what made me think I had to create the alias in order to use the module… command. Can you tell me how to get the standard Modules commands module load, module avail, etc. to work correctly? I also use bash mostly.
This is as far as I have gotten…
patti@laptop-OS121:~> module
If 'module' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf module
patti@laptop-OS121:~> alias module='modulecmd bash'
patti@laptop-OS121:~> module
cmdModule.c(169):ERROR:11: Usage is 'bash subcommand [arguments ...] '
Modules Release 3.1.6 (Copyright GNU GPL v2 1991):
Available Commands and Usage:
+ add|load modulefile [modulefile ...]
+ rm|unload modulefile [modulefile ...]
+ switch|swap modulefile1 modulefile2
+ display|show modulefile [modulefile ...]
+ avail [modulefile [modulefile ...]]
+ use -a|--append] dir [dir ...]
+ unuse dir [dir ...]
+ update
+ purge
+ list
+ clear
+ help [modulefile [modulefile ...]]
+ whatis [modulefile [modulefile ...]]
+ apropos|keyword string
+ initadd modulefile [modulefile ...]
+ initprepend modulefile [modulefile ...]
+ initrm modulefile [modulefile ...]
+ initswitch modulefile1 modulefile2
+ initlist
+ initclear
patti@laptop-OS121:~> module avail
--------------------------------------------------------- /usr/share/modules ---------------------------------------------------------
3.1.6 modulefiles/dot modulefiles/module-info modulefiles/null
modulefiles/Intel13 modulefiles/module-cvs modulefiles/modules modulefiles/use.own
--------------------------------------------------- /usr/share/modules/modulefiles ---------------------------------------------------
Intel13 dot module-cvs module-info modules null use.own
_MODULESBEGINENV_='/home/patti/.modulesbeginenv';export _MODULESBEGINENV_;patti@laptop-OS121:~>
I told you how, install package Modules with zypper or yast and then log
out and log in, the command module is available after that.
Does that not work for you?
–
PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server
I did install from yast and no module doesn’t work. I just now rebooted:
patti@laptop-OS121:~> module
If ‘module’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf module
patti@laptop-OS121:~>
I will uninstall Modules in yast, reboot, then install it from zypper, reboot, and try to see if the module command appears.
Am 26.10.2012 21:46, schrieb PattiMichelle:
> I uninstalled and reinstalled the Modules package.
> This is what I get. The -module- command does not appear, although
> the -modulecmd- command is present
That is not what you should see (I am not sure if that is a bug with
12.1, I am using 12.2).
If you do a
source /etc/profile.d/modules.sh
does it work after that?
–
PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server
Am 30.10.2012 01:36, schrieb PattiMichelle:
>
> So it looks like all I needed to do was source that file? YAY!!!
> Thank you!!! I guess I should put
> source /etc/profile.d/modules.sh in my .bashrc?
>
It seems that on your system you need to do that (on my system
/etc/profile does that automatically for me which in turn is sourced
from ~/.profile by default if PROFILEREAD is true).
–
PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server