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. env needs no site file. When CVMFS is not mounted yet, eb-local doctor names the missing init file, and eval "$(eb-local env --strict)" or EB_LOCAL_ENV_STRICT=1 stops with exit 2 before loading modules until /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash exists.

  • 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

  1. Run the lines that env prints:

    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.

  2. Load a module you installed, as you load one of EESSI’s:

    module load pigz/2.8-GCCcore-15.2.0
    

    module avail lists 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

warn your modules are not on MODULEPATH in this shell; eval "$(eb-local env)" from eb-local doctor

The shell has not run the lines, or ran them for another prefix or project.

Run eval "$(eb-local env)" with the options the builds had.

.../init/lmod/bash: line 89: EESSI_NO_MODULE_PURGE_ON_INIT: unbound variable

The script set -u before the eval line.

Set it after.

Lmod Warning: MODULEPATH is undefined., or EESSI/2026.06 among the modules Lmod calls unknown

The shell has Lmod’s module command, and no directory on its MODULEPATH holds the EESSI module, nor does init/modules under EESSI_CVMFS_REPO.

Set EESSI_CVMFS_REPO to where EESSI is mounted, or run module use on the directory that holds the module, then the eval line again; eb-local doctor names the directory.

Lmod has detected the following error: The following module(s) are unknown: and the module

The module is not built for this node’s CPU target, or not under this prefix.

eb-local list shows each module’s CPU targets; build it on this node type, or load EESSI for the prefix it is under.