Score:1

module load command doesn't work following environment module installation

cn flag
Max

I recently installed environment-modules onto my ubuntu workstation. When I first encountered the error "module load command not found", I attempted to follow the instructions given in the response to this post:

"module load" command does not work

I ran add.modules, and then I went in to edit the .bashrc startup script as instructed in the post. One key difference I found was that the commented out line was not added to the bash startup script, i.e.

case "$0" in
-sh|sh|*/sh)  modules_shell=sh ;;
   -ksh|ksh|*/ksh)  modules_shell=ksh ;;
   -zsh|zsh|*/zsh)  modules_shell=zsh ;;
-bash|bash|*/bash)  modules_shell=bash ;;
esac
module() { eval `/usr/Modules/$MODULE_VERSION/bin/modulecmd $modules_shell $*`; }
#module() { eval `/usr/bin/modulecmd $modules_shell $*`; }

So I added it manually, commenting out the line above and de-commenting the last line.

However, now when I try to run

module load <myprogram>

I just get the error "No module path defined"

Is there something that I'm missing? Most likely it was the step of creating a directory modulefiles. Where does this directory go (should it be in /usr/Modules?), and what do I need to put there in order to be able to execute module load? I'm afraid I have no experience setting up module files, so it's not clear where they should be located nor how to configure the file content.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.