Run EasyBuild through EESSI-extend without a site file¶
eb-local eb runs EasyBuild with EESSI-extend loaded without a Slurm job: on a login node, inside eessi_container.sh, or on a machine with the CernVM File System (CVMFS) mount of EESSI.
It sources the EESSI init, loads EESSI-extend, and runs eb with the arguments after --.
EESSI-extend keeps EESSI’s hooks, RPATH and compatibility layer, and installs where its install variables say; with none set, eb-local exports the configured prefix or project, the same one env uses.
Before you start¶
EESSI 2026.06 mounted at
/cvmfs/software.eessi.io; where it is elsewhere, setEESSI_CVMFS_REPOorEESSI_VERSION.eb-local on
PATH, as Install eb-local describes.At most one of the install variables
EESSI_USER_INSTALL,EESSI_PROJECT_INSTALL,EESSI_SITE_INSTALLandEESSI_CVMFS_INSTALLin your shell, and only one you mean to use.
Install into your home¶
Check that nothing stops
eb-local eb:eb-local doctorok eb-local 3.6.0 info no site file sets storage.node_local_root: `eb-local RECIPE` needs a site file; `eb-local eb` does not. `eb-local site install` writes one beside the program ok installs go to /home/alice/eessi: a user install, prefix from default ok no other EESSI or EasyBuild install variable is set in this shell ok `eb-local eb` sources /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash ok `eb-local eb` exports EESSI_USER_INSTALL=/home/alice/eessi, the prefix selected by configuration info not in a Slurm job; builds need one on the node type that will run the software info EESSI is not loaded in this shell; eval "$(eb-local env)" loads it with your modules info eessi-arch-guard is not on PATH; builds, env and dev load EESSI for the target EESSI detects warn your modules are not on MODULEPATH in this shell; eval "$(eb-local env)" info no module command in this shell; builds source /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash ok rtrash is on PATH: clean and uninstall move files to the trash Nothing above stops `eb-local eb`; `eb-local RECIPE` needs a site file.
Without a site file, a line that stops
eb-local ebsaysFAIL.Run EasyBuild with the easyconfig:
eb-local eb -- pigz-2.8-GCCcore-15.2.0.eb --robotEESSI and EESSI-extend say what they selected as they load, then EasyBuild runs and ends with:
== COMPLETED: Installation ended successfully (took 24 secs) == Results of the build can be found in the log file(s) /home/alice/eessi/versions/2026.06/software/linux/x86_64/intel/sapphirerapids/so ftware/pigz/2.8-GCCcore-15.2.0/easybuild/easybuild-pigz-2.8-20261117.091725.log. bz2 == Running post-easyblock hook... == Build succeeded for 1 out of 1 (total: 24 secs) == Summary: * [SUCCESS] pigz/2.8-GCCcore-15.2.0
It builds on the machine you run it on, for the CPU target EESSI selects there, here
x86_64/intel/sapphirerapids; a login node’s target can differ from the compute nodes’, as Run paths, and one build per CPU target explains. EasyBuild builds under$WORKING_DIR/easybuild; EESSI-extend setsWORKING_DIRto/tmp/$USERwhen you have not set it, andeb-local ebleaves it as you set it. Downloaded sources remain in$HOME/eessi/.eb-local/sources(or the configured install prefix), not under that temporary directory.Load the module, in this shell or in a job:
eval "$(eb-local env)" module load pigz/2.8-GCCcore-15.2.0
eb-local envloads EESSI with the modules under$HOME/eessi, thoseeb-local ebinstalled among them; Load EESSI and the software you installed has the rest.
Install into another directory¶
Set EESSI_USER_INSTALL to the directory; eb-local eb creates it, private to you, before EESSI-extend loads:
EESSI_USER_INSTALL=$HOME/eessi-b eb-local eb -- pigz-2.8-GCCcore-15.2.0.eb --robot
The other commands of eb-local take that directory from EB_LOCAL_PREFIX, or from the prefix setting:
eval "$(EB_LOCAL_PREFIX=$HOME/eessi-b eb-local env)"
module load pigz/2.8-GCCcore-15.2.0
For a project, set EESSI_PROJECT_INSTALL to the project’s directory, which its owner creates once with the project group and the setgid bit, as Install software on top of EESSI with EasyBuild shows.
eb-local --explain eb says on its second line which install the variables select, and runs nothing:
EESSI_PROJECT_INSTALL=/project/climate/eessi eb-local --explain eb -- pigz-2.8-GCCcore-15.2.0.eb --robot | head -2
# eb-local --explain eb: the script eb-local eb runs, with its arguments. Nothing was run.
# EESSI_PROJECT_INSTALL=/project/climate/eessi selects a project install; the process umask is 002.
The rest of its output is the script eb-local eb runs, which bash runs as eb-local eb would.
Where EESSI-extend installs says where each variable, and each mix of them, sends an install.
From a program that passes only eb’s arguments¶
A program that runs one command with eb’s own arguments, as an eb-stack EESSI target does, sets EB_LOCAL_EESSI_EXTEND=1; every argument of eb-local then goes to eb:
EB_LOCAL_EESSI_EXTEND=1 eb-local --version
After what EESSI and EESSI-extend say as they load, the last line is EasyBuild’s:
This is EasyBuild 5.4.2 (framework: 5.4.2, easyblocks: 5.4.2) on host node001.
eb-stack’s targets reference has the target that runs eb-local this way.
Check that it worked¶
eb-local list pigz
/home/alice/eessi: 1 module(s) for 1 CPU target(s)
MODULE sapphirerapids
pigz/2.8-GCCcore-15.2.0 x
Load EESSI (eval "$(eb-local env)") to see what this node's CPU target lacks.
If it fails¶
Message |
Cause |
What to do |
|---|---|---|
|
EESSI is not mounted there, or that version is not. |
Set |
|
Two install variables are set, one of them left from an earlier session. |
Unset the one you do not mean; |
|
The project directory is not there. |
Its owner creates it with the project group and |
|
A variable in your shell moves part of the install out of the tree EESSI-extend chose. |
Unset it. |