nix:environmentmodules
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | nix:environmentmodules [2019/10/15 12:48] (current) – created kauffman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Environment Modules ======= | ||
+ | |||
+ | ===== ' | ||
+ | It is a shell function used as the client to load and unload provided environments. | ||
+ | |||
+ | |||
+ | ===== Using provided environments===== | ||
+ | |||
+ | ==== What environments are available? ==== | ||
+ | < | ||
+ | $ module avail | ||
+ | ------------------------------- / | ||
+ | clang-llvm/ | ||
+ | clang-llvm/ | ||
+ | cmake/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Loading an environment ==== | ||
+ | < | ||
+ | $ module load clang-llvm/ | ||
+ | |||
+ | $ which clang | ||
+ | / | ||
+ | |||
+ | $ clang --version | ||
+ | clang version 7.0.1 (tags/ | ||
+ | Target: x86_64-unknown-linux-gnu | ||
+ | Thread model: posix | ||
+ | InstalledDir: | ||
+ | </ | ||
+ | |||
+ | ==== Unloading an environment ==== | ||
+ | < | ||
+ | $ module unload clang-llvm/ | ||
+ | |||
+ | $ which clang | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== / | ||
+ | This is where the function gets imported into your environment. It should be sourced by default and you should not have to worry about this. However, if for some reason, you do not have the ' | ||
+ | |||
+ | ===== Known bugs ===== | ||
+ | ==== gnome-terminal ==== | ||
+ | By default gnome-terminal does not start a login shell. There is a checkbox under '' | ||
+ | |||
+ | |||
+ | Assuming ' | ||
+ | You can also try '' | ||
/var/lib/dokuwiki/data/pages/nix/environmentmodules.txt · Last modified: 2019/10/15 12:48 by kauffman