Environment-Modules

Download

Official website of Environment Modules

Download software source code: modules-5.4.0.tar.gz

Installation

1
2
3
4
tar xvf modules-5.4.0.tar.gz
configure
make
sudo make install

The default installation path is /usr/local/Modules/.

Initialization

1
2
3
4
sudo ln -s /usr/local/Modules/init/profile.csh /etc/profile.d/modules.csh
sudo ln -s /usr/local/Modules/init/profile.sh /etc/profile.d/modules.sh
setenv MODULEPATH /eda/modules/cadence
setenv MODULEPATH /eda/modules/synopsys:$MODULEPATH

Setup

1
2
3
4
mkdir -p /eda/modules/cadence/ic
cd /eda/modules/cadence/ic
touch 6.17 6.18
touch .version

Edit modulefiles

1
2
3
4
5
6
7
8
cat 1.68
#%Module1.0
set version IC06.18.260
set prefix /eda/cds/ic/$prefix
setenv CDS_USE_XVFB 1
prepend-path PATH $prefix/tools/dfII/bin
prepend-path PATH $prefix/tools/bin
prepend-path PATH $prefix/bin

Set default version

1
2
3
cat .version
#%Module1.0
set ModulesVersion 6.18

Frequently used commands

1
2
3
4
5
module avail
module list
module load ic/6.18
module unload ic/6.18
module switch ic/6.17

More commands

1
module help