Skip to content

Commit 38276d4

Browse files
authored
Merge pull request #335 from xdelaruelle/modules-5.6
Update Environment Modules installation doc for v5.6
2 parents 29b33e0 + 5b6f283 commit 38276d4

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

docs/installing-environment-modules-without-root-permissions.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ Mac OS X system, together with Tcl on which it depends.
77
## Tcl
88

99
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,
10+
the time of writing, the latest available Tcl version was 8.6.16,
1111
which can be downloaded from
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
12+
[here](https://prdownloads.sourceforge.net/tcl/tcl8.6.16-src.tar.gz).
13+
The remainder of these commands will assume Tcl v8.6.16 is being
1414
installed, you may need to adjust them accordingly.
1515

1616
1. Unpack the Tcl source tarball:
1717

1818
``` shell
19-
tar xfvz tcl8.6.14-src.tar.gz
19+
tar xfvz tcl8.6.16-src.tar.gz
2020
```
2121

2222
1. Pick a location where you will install Tcl. It should be a directory
@@ -27,12 +27,12 @@ Mac OS X system, together with Tcl on which it depends.
2727
the `configure` script using the `--prefix` option:
2828

2929
``` shell
30-
cd tcl8.6.14/unix
30+
cd tcl8.6.16/unix
3131
./configure --prefix=$HOME/.local/Tcl
3232
```
3333

3434
If you're building Tcl and Environment Modules on Mac, you should
35-
run `configure` in the `tcl8.6.14/macosx` directory instead.
35+
run `configure` in the `tcl8.6.16/macosx` directory instead.
3636
3737
1. Next, build Tcl using the `make` command. If the system you are
3838
building on has multiple cores, running make in parallel will speed
@@ -57,14 +57,14 @@ package, which requires Tcl.
5757
## Environment Modules
5858
5959
1. Download the latest source tarball for the Environment Modules tools
60-
from <https://modules.sourceforge.net>. At the time of writing, the
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).
60+
from <https://envmodules.github.io/modules/>. At the time of writing, the
61+
latest available version is 5.6.0 which can be downloaded [from
62+
here](https://github.com/envmodules/modules/releases/download/v5.6.0/modules-5.6.0.tar.gz).
6363
6464
1. Unpack the downloaded source tarball:
6565
6666
``` shell
67-
tar xfvz modules-5.4.0.tar.gz
67+
tar xfvz modules-5.6.0.tar.gz
6868
```
6969
7070
1. Configure the build, again use `--prefix` to specify where to
@@ -74,8 +74,8 @@ package, which requires Tcl.
7474
option:
7575

7676
``` shell
77-
cd modules-5.4.0
78-
./configure --prefix=$HOME/.local/environment-modules --with-tcl=$HOME/.local/Tcl/lib
77+
cd modules-5.6.0
78+
./configure --prefix=$HOME/.local/environment-modules --with-tcl=$HOME/.local/Tcl/lib --with-tclsh=$HOME/.local/Tcl/bin/tclsh8.6
7979
```
8080

8181
1. Build with `make`:
@@ -110,3 +110,8 @@ source $HOME/.local/environment-modules/init/bash
110110
!!! tip
111111
Add these three lines in your `.bashrc` file, that way they'll
112112
be executed every time you log in.
113+
114+
You may look at Environment Modules installation guide to learn how to [enable
115+
it in other shells](https://modules.readthedocs.io/en/stable/INSTALL.html#enable-modules-in-shells)
116+
or [adapt the configuration](https://modules.readthedocs.io/en/stable/INSTALL.html#configuration)
117+
to fit your needs.

0 commit comments

Comments
 (0)