Cannot make environment-module package work on ubuntu trusty

Asked by Lemieux

Hi,

My OS is Ubuntu 14.04. I installed the environment-module binaries (version 3.2.10) with apt-get.
Typing "module" in a terminal leads to (in french):

module : commande introuvable

The "module" command is not recognized, nor the "module list" command,... etc.

I checked if some of the files of the package exist:

ll -t /etc/csh/login.d/modules
-rw-r--r-- 1 root root 455 déc. 12 2013 /etc/csh/login.d/modules

They do indeed (at least the one I checked for).

Am-I doing something wrong? Can you please help me to make it work?

B.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu modules Edit question
Assignee:
No assignee Edit question
Solved by:
Lemieux
Solved:
Last query:
Last reply:
Revision history for this message
Lemieux (blemieux) said :
#1

Hi again,

I have just compiled the module-3.2.10 from source (see link http://sourceforge.net/projects/modules/files/Modules/) using the gnu compilers on my OS Ubuntu 14.04. And it worked. I guess it might work with the binaries two but I still do not understand how.

If ever it can help, here is the way I proceed:

- I add to install first tcl8.6-dev (since the configure script was complaining about tclConfig.sh file missing).

- Since I got an error message at the make step regarding 'errorLine' stuff (see bug report here http://sourceforge.net/p/modules/bugs/62/), I ran the configure script with CPP flag set this way CPPFLAGS="-DUSE_INTERP_ERRORLINE":

CPPFLAGS="-DUSE_INTERP_ERRORLINE" ./configure --prefix=/opt/module/module-3.2.10 --with-module-path=~/modules

then "make", and "make install" worked properly.

- Under my home, I ran the script:

/opt/module/module-3.2.10/Modules/default/bin/add.modules

it automatically modifies .bashrc, .profile (or .cshrc...) so that it runs the following module command:

$PREFIX/Modules/$MODULE_VERSION/bin/modulecmd $modules_shell

where:

$PREFIX is in my case /opt/module/module-3.2.10 (see the argument of --prefix of the configure script),
$module_shell being set on the right shell automatically in the .bashrc,
$MODULE_VERSION is set to 3.2.10 (I guess during install).

- then typing "module" at the prompt worked.

Cheers, B.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

http://www.admin-magazine.com/HPC/Articles/Environment-Modules
Did you also try looking at the package you installed and reading it's man page

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

The last link I gave shows this:
News
11-Oct-2011
modulecmd.tcl version 1.144 released

So no new release in nearly 3 years. ...do you really want to use this?

Have you contacted the developers?

Revision history for this message
Lemieux (blemieux) said :
#5

Thank you for answers. I did visit this link:

http://modules.sourceforge.net

Sorry to bother with this pb. I think my on built will do the job. I just coudn't succeed with Ubuntu binaries.