Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
0. Define local module command (only once)
To utilize local modules, we suggest creating a bash command such as localmod
that contains essential setup within your $HOME/.bashrc
. The provided set of commands below will create a local module directory based on LOCALMOD_DIR
and then define the localmod
command in your $HOME/.bashrc
.
...
Open the .eb file using a text editor such as vi
, then edit the following
toolchain
Correct the toolchain information, e.g.,toolchain = {'name': 'cpeCray', 'version': '23.03'}
. This must be consistent with the CPE toolchain and file name chosen in Step 2.builddependencies and/or dependencies
Check if the software dependencies are available in ThaiSC modules by usingmodule spider <dep-name>
.
For example,module spider binutils
. If available, you could use them by editing each dependency information('<dep-name>', '<dep-version>', '<dep-suffix>', <dep-toolchain>)
where<dep-name>
is the dependency name, e.g.,binutils
.<dep-version>
is the dependency version, e.g.,2.40
.<dep-suffix>
and<dep-toolchain>
are optional. The default will use the same toolchain as in Step 3.1 without any suffix. This is recommended. For more details, visit writing .eb.
...