Install software on top of EESSI with EasyBuild¶
A build installs an EasyBuild recipe, and the dependencies EESSI lacks, into your install prefix or a project’s directory, for the CPU target of the node that builds it.
These steps build pigz for one node type, use it, and build for a group.
Before you start¶
eb-local. A cluster needs a site file as Write the site file for a cluster describes. A workstation outside Slurm needs none;
eb-local site install workstationprovides a starting point for site toolchains and[eessi]variables.The file name of the recipe.
eb-local eb -- --search NAMElists those in the EasyBuild that EESSI ships; EESSI 2026.06 builds on the toolchains of 2026.1, such asGCCcore-15.2.0:eb-local eb -- --search pigz-2.8
Build it¶
On a cluster, start an allocation on the node type that will run the software, on nodes with a node-local disk:
salloc -p cpu -n 16 -t 02:00:00On a workstation, skip this step: local mode is automatic when
sbatchis absent fromPATHand no nonemptySLURM_*variable marks a Slurm context. If Slurm is installed but this build should deliberately use the workstation’s disk, pass--workstation. EasyBuild builds for the CPU of the machine it runs on.eb-local configshows the line the site suggests, asbuild.allocation_hint.Build the recipe, with
--robotfor its dependencies:eb-local pigz-2.8-GCCcore-15.2.0.eb --roboteb-local’s own lines come first and last, around EasyBuild’s output:
eb-local: what this runs: eb-local --explain pigz-2.8-GCCcore-15.2.0.eb --robot eb-local: installing into /home/alice/eessi (user) eb-local: target x86_64/intel/sapphirerapids, build space /local/alice.16/eb-local.MMgKwXBi == Temporary log file in case of crash /home/alice/eessi/.eb-local/logs/easybuild-jonti74m.log ... == Build succeeded for 1 out of 1 (total: 26 secs) ... eb-local: done. To use the modules in a new shell or job: eval "$(eb-local env)"
The options after the recipe are EasyBuild’s. The build works in a new private workspace on local disk and removes it when the build succeeds. A workstation uses a safe
$TMPDIRwhen available, otherwise$XDG_CACHE_HOME/eb-local/work;clean --workspacesremoves a failed build’s retained workspace even after$TMPDIRchanges.Load the module, in this shell or a new one:
eval "$(eb-local env)" module load pigz/2.8-GCCcore-15.2.0
Repeat steps 1 to 3 on each other node type that will run the software, or have a batch job build it on each, as Build for every node type describes.
eb-local --explain pigz-2.8-GCCcore-15.2.0.eb --robot prints the script the build runs, and the checks before it, and creates and runs nothing.
Build for a group¶
A project directory holds the installs of a group, who all load them. The project’s owner creates it once, with the project’s group and the setgid bit:
mkdir -p /path/to/project/eessi && chgrp myproj /path/to/project/eessi && chmod 2770 /path/to/project/eessi
Each member then builds into it:
eb-local --project /path/to/project/eessi pigz-2.8-GCCcore-15.2.0.eb --robot
A project build runs with umask 002, as EESSI-extend sets it for a project install, so that each member can write the directories the others’ builds made; EasyBuild still leaves each installation read-only.
A user build runs with umask 077, and EasyBuild adds the sticky bit, so an install in your prefix is yours alone.
Where others must read a user install, pass --umask=022 among EasyBuild’s options.
Check that it worked¶
With EESSI loaded, list what you installed:
eb-local list
/home/alice/eessi: 1 module(s) for 1 CPU target(s)
MODULE sapphirerapids*
pigz/2.8-GCCcore-15.2.0 x
Every module listed is built for this node's target, x86_64/intel/sapphirerapids (*).
The column marked * is this node’s CPU target.
If it fails¶
Message |
Cause |
What to do |
|---|---|---|
|
The shell is not in an allocation. |
Start one with the line the message suggests, on the node type that will run the software. |
|
eb-local has no site file. |
Ask the site to install one, or use |
|
|
Correct the setting that |
|
The shell has Lmod’s |
Set |
|
Anyone could add module files that the group loads. |
Run |
|
A warning: each member’s installs would keep that member’s group. |
Run |
|
The build failed, and eb-local keeps its workspace for you to look into. |
Read EasyBuild’s log, which EasyBuild names, then run |
Refusals lists every check a build makes before it starts.