PDA

View Full Version : module: command not found


siniantao
9th May 2011, 03:13 AM
Hi all:
when I build package hdf5(rpmbuild -ba hdf5.spec),I get error: 'module: command not found'.what's wrong?


+module load mpich2-x86_64
module: commad not found.

Any help?Thanks!
:confused:

marko
9th May 2011, 07:48 AM
I noticed that if I install hdf5, it pulls in a package called environment-modules and that package has a "module" command in it. Maybe you just need to install environment-modules

siniantao
9th May 2011, 10:21 AM

I noticed that if I install hdf5, it pulls in a package called environment-modules and that package has a "module" command in it. Maybe you just need to install environment-modules

Thanks,but it only have a "modulecmd" command,and I know "module" command is a alias of "modulecmd",how to get "module" ?

fadishei
7th February 2012, 05:32 AM
For me, the problem solved by adding this line to the top of ~/.bashrc:

. /etc/profile