Questions tagged [environment-modules]

The Environment Modules package provides for the dynamic modification of a user's environment via modulefiles.

Typically users initialize their environment when they log in by setting environment information for every application they will reference during the session. The Environment Modules package is a tool that simplify shell initialization and lets users easily modify their environment during the session with modulefiles.

Each modulefile contains the information needed to configure the shell for an application. Once the Modules package is initialized, the environment can be modified on a per-module basis using the module command which interprets modulefiles. Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH, MANPATH, etc. modulefiles may be shared by many users on a system and users may have their own collection to supplement or replace the shared modulefiles.

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, fish, as well as some scripting languages such as perl, ruby, tcl and python.

Modules are useful in managing different versions of applications. Modules can also be bundled into metamodules that will load an entire suite of different applications.

80 questions
0
votes
1 answer

where is located the 'module' command?

I am sorry if this is a silly question, but I can't locate where's the "module" command for the modules environment. "which module", "whereis module", or "alias module" gives me nothing. This is very puzzling to me, can anyone please help?
jmborr
  • 1,215
  • 2
  • 13
  • 23
0
votes
1 answer

Env not modify when loading module in modulefile

I would like to load a module into a modulefile (to resolve dependencies). MyModule: #%Module######################################## ## ## Modulefile # proc ModulesHelp { } { puts stderr "Env for MyProg" } proc addPath {var val} { …
Sigmun
  • 1,002
  • 2
  • 12
  • 23
0
votes
2 answers

Environment Modules source file

Hello I'm using the project "Environment Modules" in a linux cluster to ease the usage of softs for the users. Some of my softwares don't only rely on environment variables but as well needs that some files be sourced. How can I source a file from a…
Yann Sagon
  • 547
  • 3
  • 21
-1
votes
1 answer

Linux server module load issue

I work with Linux server and if I load by shell script module its not available. This is shell script source /cvmfs/software.xxxx.yyyyy/modulefiles/5.1.0/loadmodules module add unicycler-0.5.0 module add pymol module list unicycler --help This…
-1
votes
1 answer

Problem occurs when sourcing bashrc.user in script

I encountered a problem when I was trying to source a .bashrc.user file. It worked fine when I source the file in the terminal, it gave no complaints. But when I tried to do the same in my bash script, it gave some issues. here is how my code looks…
maoyi
  • 433
  • 1
  • 6
  • 12
1 2 3 4 5
6