Questions tagged [modulefile]

Unix modulefiles provide a standard way to set environment variables in a shell.

Unix modulefiles provide a standard way to set environment variables in a shell.

Wikipedia

See the manpage at your unix command prompt:

man module
27 questions
12
votes
4 answers

how to load virtualenv using environmental module file (tcl script)?

I am trying to write a module file for a program that creates a python virtualenv. In order to start the virtualenv, it needs to first run /programs/program-env/bin/activate. How do I do this in a modulefile? Any help will be greatly…
arnstrm
  • 379
  • 3
  • 13
5
votes
1 answer

Pass arguments to set-alias in modulefile

I try to load a modulefile containing an alias from a bash shell. The tutorial page says the following about the set-alias command: set-alias alias-name alias-string Sets an alias or function with the name alias-name in the user's environment to…
Tarjei
  • 88
  • 1
  • 7
4
votes
1 answer

Module load intel (ERROR:105: Unable to locate a modulefile for 'intel')

I am trying to use environment-modules in Ubuntu I could successfully install the module package but when I tried to use module load intel, it gave me the following error: ERROR:105: Unable to locate a modulefile for 'intel' I used module avail…
user3452351
  • 103
  • 1
  • 2
  • 8
3
votes
1 answer

How to create modulefile for linux Environment Modules?

How to create modulefile on centos7 for any software (ex. for python)? path of modulefile is /etc/modulefile I have two version of python ( python2.7 and python3.7). I Create a directory for python inside modulefiles /etc/modulefiles/python , then…
Sam.
  • 59
  • 7
2
votes
2 answers

modulefile - module unload is not unsetting environment variables

I have a very simple modulefile: #%Module1.0##################################################################### puts stderr "Loading personal environment" proc ModulesHelp { } { puts stderr "\tLoads personal environment" puts stderr…
stephenmm
  • 2,640
  • 3
  • 30
  • 48
2
votes
1 answer

Set the default version in modulefiles

Given a directory containing modulefiles for several versions, how does one set a default so that the user can type module load random_tool without having to specify the version number? % ls random_tool 1.2 2.3 3.0
Ray Salemi
  • 5,247
  • 4
  • 30
  • 63
2
votes
1 answer

makefile .mod compilation rule

I'm modifying makefile of a code. After compiling, I see that some *.mod files are generated. looking online, I figured out they are module files, but I don't see a compilation rule for them. I'm trying to change the directory in which these files…
Blade
  • 984
  • 3
  • 12
  • 34
2
votes
1 answer

How do I convert csh aliases into MODULEFILE compatible set-alias commands?

I have a bunch of aliases that I would like to share with co-workers and I would like to put it in our project modulefile. Is there a script that would do the conversion for me? Or at least give me a good start and then I could fix the ones that…
stephenmm
  • 2,640
  • 3
  • 30
  • 48
2
votes
1 answer

What are module-info mode switch statements?

The package Environment Modules defines the module-info mode command. The man page for modulefile lists the possible modes as: load, remove, display, help, whatis, switch, switch1, switch2, or switch3. What are the multiple switch statements?
Pete
  • 10,310
  • 7
  • 53
  • 59
1
vote
1 answer

Environment Modules (modulefile) integration into Jenkins Pipeline (Groovy)?

I am deploying Environment Modules here at my company and would like to make sure that all use models are covered adequately. Since Groovy is not a supported language by modulecmd.tcl, and tampering with the code base is not an option, I'm…
1
vote
1 answer

Using bash variables inside of modulefiles

I'm trying to write a series of modulefiles that can be used to load software installed under each user's account in a cluster setting. Since the software is installed per person under similar paths up-to a username changing, I'm trying to…
coatless
  • 20,011
  • 13
  • 69
  • 84
1
vote
1 answer

Environment Modules: can is-loaded look for a range of modulefile-names?

I'm getting started writing Environment Modules. I'm currently writing modulefiles that load the appropriate environment variables to run different versions of a program and want to display a warning if multiple modulefiles for the same program are…
julian19
  • 13
  • 2
1
vote
1 answer

module load - how to load modulefiles

I am trying to replicate a tutorial on my Ubuntu 18.04. There are two lines: module load dev/python/2.7.6 module load stats/R/3.2.1-Cairo I am not quite sure how to load modules. I tried downloading http://modules.sourceforge.net/. I am not sure how…
sara
  • 25
  • 1
  • 7
1
vote
1 answer

tcsh autocompletion for modulefiles

I found this piece of code, which does auto-completion for module files in tcsh at https://opensource.apple.com/source/tcsh/tcsh-66/tcsh/complete.tcsh. Could somebody help me understand how the 'alias Compl_module' works? #from Dan Nicolaescu…
Leo
  • 13
  • 2
1
vote
1 answer

why run module unload failed in modulefile?

I am a newbie. I found an interesting thing about Environment modules. please see the following process. my linux OS is redhat5.8. I have installed environment modules 3.2.10, tcl8.6.6, source init/csh successfully. I write a qq/{61_0, 61_1, 61_2}…
1
2