-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update installation instructions for Lmod #780
Open
ocaisa
wants to merge
3
commits into
develop
Choose a base branch
from
ocaisa-patch-1
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,25 @@ Installing Lmod without root permissions | |
This short guide will show how to install Lmod (and Lua, on which it | ||
depends) on Linux, without requiring root permissions. | ||
|
||
For full instructions on installing Lmod and its prerequisites check | ||
the `Lmod documentation<https://lmod.readthedocs.io/en/latest/030_installing.html>`_. | ||
|
||
Lua | ||
~~~ | ||
|
||
Dependencies: Installing Lua using the steps below requires rsync, make and gcc | ||
Dependencies: Installing Lua using the steps below requires bzip2, rsync, make and gcc | ||
|
||
Build and install Lua using the source tarball available in the Lmod | ||
SourceForge repository (`http://sourceforge.net/projects/lmod/files/`_). | ||
SourceForge repository (`https://sourceforge.net/projects/lmod/files/`_). | ||
This version is a lot easier to build, and already includes the required | ||
extra Lua modules. At the time of writing this relates to the | ||
``lua-5.1.4.8.tar.gz`` tarball. | ||
``lua-5.1.4.9.tar.bz2`` tarball. | ||
|
||
**Step 1**: Download and unpack Lua: | ||
|
||
**Step 1**: Download and unpack `lua-5.1.4.8.tar.gz`_. | ||
.. code:: bash | ||
wget https://sourceforge.net/projects/lmod/files/lua-5.1.4.9.tar.bz2 | ||
tar xvfj lua-5.1.4.9.tar.bz2 && cd lua-5.1.4.9 | ||
|
||
**Step 2**: Configure the Lua build, provide a custom installation | ||
prefix (e.g. ``$HOME/lua``) and specify to statically link libraries | ||
|
@@ -55,7 +62,8 @@ Lmod | |
Dependencies: building Lmod using the steps below requires tcl, tcl-dev(el), make and bzip2 | ||
|
||
**Step 1**: Download and unpack the latest available Lmod version, | ||
`Lmod-8.4.tar.bz2`_ at the time of writing. | ||
`Lmod-8.4.tar.bz2`_ at the time of writing, from the `Lmod GitHub releases page | ||
<https://github.com/TACC/Lmod/releases>`_. | ||
|
||
.. code:: bash | ||
|
||
|
@@ -67,18 +75,25 @@ Dependencies: building Lmod using the steps below requires tcl, tcl-dev(el), mak | |
|
||
./configure --prefix=$HOME && make install | ||
|
||
**Step 3**: Update ``$PATH`` so ``lmod`` is available (put this in your | ||
``.bashrc``): | ||
**Step 3**: Update the ``$LMOD_CMD`` to point to the Lmod executable | ||
(put this in your ``.bashrc``): | ||
|
||
.. code:: bash | ||
export LMOD_CMD=$HOME/lmod/8.4/libexec/lmod | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is set by the Lmod init script, no need to do this manually at all (and if |
||
|
||
Note that you can use the specific version as above but the ``lmod`` | ||
directory symlink allows updates without needing to change this export | ||
(and so is usually preferred): | ||
|
||
.. code:: bash | ||
|
||
export PATH=$HOME/lmod/8.4/libexec:$PATH | ||
export LMOD_CMD=$HOME/lmod/lmod/libexec/lmod | ||
|
||
Optionally, give it a spin: | ||
|
||
.. code:: bash | ||
|
||
$ lmod --version | ||
$ $LMOD_CMD --version | ||
|
||
Modules based on Lua: Version 8.4 2020-07-31 12:25 -05:00 | ||
by Robert McLay [email protected] | ||
|
@@ -88,10 +103,9 @@ with EasyBuild): | |
|
||
.. code:: bash | ||
|
||
source $HOME/lmod/8.4/init/bash | ||
export LMOD_CMD=$HOME/lmod/8.4/libexec/lmod | ||
source $HOME/lmod/lmod/init/bash | ||
|
||
.. _`http://sourceforge.net/projects/lmod/files/`: http://sourceforge.net/projects/lmod/files/ | ||
.. _lua-5.1.4.8.tar.gz: https://sourceforge.net/projects/lmod/files/lua-5.1.4.8.tar.gz/download | ||
.. _`https://sourceforge.net/projects/lmod/files/`: https://sourceforge.net/projects/lmod/files/ | ||
.. _lua-5.1.4.9.tar.bz2: https://sourceforge.net/projects/lmod/files/lua-5.1.4.9.tar.bz2/download | ||
.. _Lmod-8.4.tar.bz2: https://sourceforge.net/projects/lmod/files/Lmod-8.4.tar.bz2/download | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ocaisa This should be updated too, Lmod 8.4 is not latest at time of writing anymore ;)