1
- # Installing environment modules without root permissions {: #installing_env_mod_c }
1
+ # Installing Environment Modules without root permissions {: #installing_env_mod }
2
2
3
- This short guide will explain how to install the standard environment
4
- modules Tcl/C software package without root permissions on a Linux or
3
+ This short guide will explain how to install the standard Environment
4
+ Modules software package without root permissions on a Linux or
5
5
Mac OS X system, together with Tcl on which it depends.
6
6
7
7
## Tcl
8
8
9
- 1 . Go to < https://www.tcl.tk > and download the latest Tcl sources. At
10
- the time of writing, the latest available Tcl version was 8.5.15 ,
9
+ 1 . Go to < https://www.tcl-lang.org > and download the latest Tcl sources. At
10
+ the time of writing, the latest available Tcl version was 8.6.14 ,
11
11
which can be downloaded from
12
- [ here] ( https://prdownloads.sourceforge.net/tcl/tcl8.5.15-src.tar.gz ) .
13
- The remainder of these commands will assume Tcl v8.5.15 is being
14
- installed, you may need to adjust them accordingly. ** Note** : Stick
15
- to Tcl v8.5.x, don't consider using the more recent v8.6.x or
16
- higher, since the environment modules package is not compatible with
17
- those Tcl versions.
12
+ [ here] ( https://prdownloads.sourceforge.net/tcl/tcl8.6.14-src.tar.gz ) .
13
+ The remainder of these commands will assume Tcl v8.6.14 is being
14
+ installed, you may need to adjust them accordingly.
18
15
19
16
1 . Unpack the Tcl source tarball:
20
17
21
18
``` shell
22
- tar xfvz tcl8.5.15 -src.tar.gz
19
+ tar xfvz tcl8.6.14 -src.tar.gz
23
20
```
24
21
25
22
1. Pick a location where you will install Tcl. It should be a directory
@@ -30,12 +27,12 @@ Mac OS X system, together with Tcl on which it depends.
30
27
the ` configure` script using the ` --prefix` option:
31
28
32
29
` ` ` shell
33
- cd tcl8.5.15 /unix
30
+ cd tcl8.6.14 /unix
34
31
./configure --prefix=$HOME /.local/Tcl
35
32
` ` `
36
33
37
- If you' re building Tcl and environment modules on Mac, you should
38
- run `configure` in the `tcl8.5.15 /macosx` directory instead.
34
+ If you' re building Tcl and Environment Modules on Mac, you should
35
+ run `configure` in the `tcl8.6.14 /macosx` directory instead.
39
36
40
37
1. Next, build Tcl using the `make` command. If the system you are
41
38
building on has multiple cores, running make in parallel will speed
@@ -54,38 +51,37 @@ Mac OS X system, together with Tcl on which it depends.
54
51
make install
55
52
```
56
53
57
- **All done!** Now you are ready to build the environment modules
54
+ **All done!** Now you are ready to build the Environment Modules
58
55
package, which requires Tcl.
59
56
60
57
## Environment Modules
61
58
62
- 1. Download the latest source tarball for the environment modules tools
59
+ 1. Download the latest source tarball for the Environment Modules tools
63
60
from <https://modules.sourceforge.net>. At the time of writing, the
64
- latest available version is 3.2.10 which can be downloaded [from
65
- here](https://prdownloads.sourceforge.net/modules/modules-3.2.10 .tar.gz).
61
+ latest available version is 5.4.0 which can be downloaded [from
62
+ here](https://prdownloads.sourceforge.net/modules/modules-5.4.0 .tar.gz).
66
63
67
64
1. Unpack the downloaded source tarball:
68
65
69
66
``` shell
70
- tar xfvz modules-3.2.10 .tar.gz
67
+ tar xfvz modules-5.4.0 .tar.gz
71
68
```
72
69
73
70
1. Configure the build, again use `--prefix` to specify where to
74
- install the environment modules tool in the end. If you needed to
71
+ install the Environment Modules tool in the end. If you needed to
75
72
install Tcl by hand as outlined in the previous section, you' ll also
76
73
need to specify where it was installed using the ` --with-tcl`
77
74
option:
78
75
79
76
` ` ` shell
80
- cd modules-3.2.10
77
+ cd modules-5.4.0
81
78
./configure --prefix=$HOME /.local/environment-modules --with-tcl=$HOME /.local/Tcl/lib
82
79
` ` `
83
80
84
- 1. Build with ` make` , consider parallel build if your system is recent
85
- enough:
81
+ 1. Build with ` make` :
86
82
87
83
` ` ` shell
88
- make -j 4
84
+ make
89
85
` ` `
90
86
91
87
1. Install:
@@ -98,17 +94,17 @@ Alright, now just one more thing...
98
94
99
95
# # Set up your environment
100
96
101
- Because you' ve installed environment modules and Tcl in a non-default
97
+ Because you' ve installed Environment Modules and Tcl in a non-default
102
98
location, you need to make sure your environment is setup up correctly
103
99
to use them.
104
100
105
101
To make a long story short, these are the commands you need to execute:
106
102
107
103
``` shell
108
- export PATH=$HOME/.local/environment-modules/Modules/3.2.10/ bin:$PATH
104
+ export PATH=$HOME/.local/environment-modules/bin:$PATH
109
105
export LD_LIBRARY_PATH=$HOME/.local/Tcl/lib:$LD_LIBRARY_PATH
110
106
# adjust line below if you' re using a shell other than bash, check with ' echo $SHELL'
111
- source $HOME /.local/environment-modules/Modules/3.2.10/ init/bash
107
+ source $HOME /.local/environment-modules/init/bash
112
108
```
113
109
114
110
!!! tip
0 commit comments