Load EESSI and the software you installed¶
eb-local env prints the shell lines that load EESSI, and then EESSI-extend for your install prefix, which puts the modules you installed on MODULEPATH ahead of EESSI’s.
These steps load them in a shell and in a job script, and carry your eb-local settings into a job or a container that does not have your configuration files.
Before you start¶
eb-local on
PATH, as Install eb-local describes, and EESSI 2026.06 under/cvmfs/software.eessi.io.envneeds no site file. When CVMFS is not mounted yet,eb-local doctornames the missing init file, andeval "$(eb-local env --strict)"orEB_LOCAL_ENV_STRICT=1stops with exit 2 before loading modules until/cvmfs/software.eessi.io/versions/2026.06/init/lmod/bashexists.A shell on the node type that runs the software, such as one in a Slurm job there: EESSI chooses the binaries for the CPU it finds when it loads.
Load EESSI in a shell¶
Run the lines that
envprints:eval "$(eb-local env)"On a node where EESSI is not mounted, stop before loading modules instead of continuing into a failed
module load:eval "$(eb-local env --strict)"eb-local: missing /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash; mount EESSI with CVMFS, use the EESSI container, or set EESSI_CVMFS_REPO and EESSI_VERSION.The EESSI and EESSI-extend modules print lines of their own as they load. Without
eval, the lines change nothing.Load a module you installed, as you load one of EESSI’s:
module load pigz/2.8-GCCcore-15.2.0module availlists your modules first, under<install prefix>/versions/2026.06/software/linux/<CPU target>/modules/all.
For the modules of a project, name its directory, as the builds for it do:
eval "$(eb-local --project /path/to/project/eessi env)"
The lines then set EESSI_PROJECT_INSTALL in place of EESSI_USER_INSTALL.
--profile NAME selects a profile that sets prefix or project, as for a build.
Load EESSI in a job script¶
#!/bin/bash
#SBATCH -p cpu -n 4 -t 01:00:00
eval "$(eb-local env)"
set -u
module load pigz/2.8-GCCcore-15.2.0
pigz -p 4 results.tar
set -u comes after the eval line: where the shell has no module command, the lines source EESSI’s Lmod init, which reads variables that are not set.
Carry the configuration into a job or a container¶
config --env prints the settings in force as variables, so a job script, a container or a continuous integration job has them without your files:
eb-local config --env > eb-local.env
# eb-local configuration; storage and build.site_toolchains come only from the site file
# every setting of the profile in force is below, so no profile is selected beneath them
export EB_LOCAL_PROFILE=''
export EB_LOCAL_PREFIX=/home/alice/eessi
export EB_LOCAL_STACK_MODULE=EESSI/2026.06
export EB_LOCAL_STACK_EXTEND=EESSI-extend/2026.06-easybuild
export EB_LOCAL_DEV_MODULES=''
export EB_LOCAL_BUILD_ALLOCATION_HINT='salloc -p cpu -n 16 -t 02:00:00'
export EB_LOCAL_CLEAN_TRASH=auto
export EB_LOCAL_CLEAN_LOGS_OLDER_THAN_DAYS=30
export EB_LOCAL_NIMVAULT_PROGRAM=''
export EB_LOCAL_NIMVAULT_VAULT=''
Source the file where the settings are needed:
. ./eb-local.env && eb-local config
Each setting then says [environment EB_LOCAL_...] where it was set.
A secret comes out as EB_LOCAL_SECRET_<NAME> with where its value is read from, never the value.
The storage settings and build.site_toolchains have no variable: only the site file sets them.
The environment variables lists every variable.
Check that it worked¶
eb-local doctor
Among its lines:
ok EESSI 2026.06 is loaded for x86_64/intel/sapphirerapids
ok your modules are on MODULEPATH
If it fails¶
Message |
Cause |
What to do |
|---|---|---|
|
The shell has not run the lines, or ran them for another prefix or project. |
Run |
|
The script set |
Set it after. |
|
The shell has Lmod’s |
Set |
|
The module is not built for this node’s CPU target, or not under this prefix. |
|