Environment Modules Project 多重環境管理

196 views
Skip to first unread message

Kris 張

unread,
Aug 2, 2010, 6:07:13 AM8/2/10
to 銀興科技SilverShineTech
http://modules.sourceforge.net/

*Modules* can manage version control on the cluster.
It save time finding out the environment settings for particular pkg.

Simple guideline:
http://lrc.lbl.gov/html/Using_Environment_Modules.html

Modules can be loaded and unloaded dynamically and atomically, in an
clean fashion. All popular shells are supported, including bash, ksh,
zsh, sh, csh, tcsh, as well as some scripting languages such as perl.


[Download]
http://sourceforge.net/projects/modules/files/

2009-09-22
http://ncu.dl.sourceforge.net/project/modules/Modules/modules-3.2.7/modules-3.2.7b.tar.gz
http://ncu.dl.sourceforge.net/project/modules/Modules/modules-3.2.7/modules-3.2.7b.tar.bz2

Jason Shih

unread,
Aug 2, 2010, 7:26:02 AM8/2/10
to silve...@googlegroups.com
fyi,

the profile is easier to describe, under modulefiles, you will redefine
version and modroot for all different build pkg, e.g.:


$ ls mpich2/
1.1.1p1_gnu 1.1.1p1_intel 1.2.1p1_gnu 1.2.1p1_intel 1.3a1_gnu
1.3a1_intel


- mpich2 intel build:


$ cat mpich2/1.1.1p1_intel
#%Module1.0#####################################################################
##
## modules modulefile
##
## modulefiles/modules. Generated from modules.in by configure.
##
proc ModulesHelp { } {
global version modroot

puts stderr "\tmodules - loads the modules software &
application environment"
puts stderr "\n\tThis adds $modroot/* to several of the"
puts stderr "\tenvironment variables."
puts stderr "\n\tVersion $version\n"
}

module-whatis "loads the modules environment"

# for Tcl script use only
set version 1.1.1p1_intel
set modroot /opt/pkg/mpich2/mpich2-1.1.1p1.intel


setenv MODULESHOME $modroot
prepend-path PATH $modroot/bin
prepend-path MANPATH $modroot/man
prepend-path LD_LIBRARY_PATH $modroot/lib

BR,
J

--
Jason Shih
ASGC
Tel: +886-2-2789-8373
Fax: +886-2-2783-5434

Kris Chang

unread,
Aug 3, 2010, 8:20:19 AM8/3/10
to 銀興科技SilverShineTech
Possible errors

checking TCL_LIB_SPEC... configure: error: TCL_LIB_SPEC not found,
need to use --with-tcl-lib

This means you are missing the development headers of TCL.

=>
$ yum install tcl-devel.
Reply all
Reply to author
Forward
0 new messages