-
Notifications
You must be signed in to change notification settings - Fork 145
Installing environment modules without root permissions
This short guide will explain how to install the environment modules software package without root permissions, together with Tcl on which it depends.
- Go to http://www.tcl.tk and download the latest Tcl sources.
At the time of writing, the latest available Tcl version was 8.5.13, which can be downloaded here. The remainder of these commands will assume Tcl v8.5.13 is being installed, you may need to adjust them accordingly.
- Unpack the Tcl source tarball:
tar xfvz tcl8.5.13-src.tar.gz
-
Pick a location where you will install Tcl. It should be a directory you have write permissions on. My suggestion would be to use something like
$HOME/.local/Tcl
. -
Go to the
unix
subdirectory of the unpacked Tcl directory, and run theconfigure
script using the--prefix
option:
cd tcl8.5.13/unix
./configure --prefix=$HOME/.local/Tcl
If you're building Tcl and environment modules on Mac, you should run configure
in the tcl8.5.13/macosx
directory instead.