EasyBuild

EasyBuild

 

Read:

https://easybuild.readthedocs.io/en/latest/Concepts_and_Terminology.html#concepts-and-terminology


Installation Centos 7

http://easybuild.readthedocs.io/en/latest/Installation.html

 

1] create directory in user home directory to install easybuild and set installation prefix

 

mkdir -p $HOME/.local/easybuild

EASYBUILD_PREFIX=$HOME/.local/easybuild

 

2] download install script

 

curl -O https://raw.githubusercontent.com/easybuilders/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py

3] bootstrap EasyBuild

 

python bootstrap_eb.py $EASYBUILD_PREFIX

 

Output should look like this:

 

[[INFO]] EasyBuild bootstrap script (version 20180201.01, MD5: 5211e214b622e6d80614c3127eec2396) [[INFO]] Found Python 2.7.5 (default, May 3 2017, 07:55:04) ; [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] [[INFO]] Installation prefix /home/cgchildr/.local/easybuild [[INFO]] Found module command '/usr/share/lmod/lmod/libexec/lmod' via $LMOD_CMD (Lmod), so using it. [[INFO]] Suitable setuptools installation already found, skipping stage 0... [[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with easy_install... [[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade --prefix=/tmp/tmptT2UQn/eb_stage1 easybuild' [[INFO]] running post install command 'easy_install --upgrade --prefix=/tmp/tmptT2UQn/eb_stage1 vsc-base' [[INFO]] +++ STAGE 2: installing EasyBuild in /home/cgchildr/.local/easybuild with EasyBuild from stage 1... == temporary log file in case of crash /tmp/eb-cfzi_2/easybuild-1EbVJR.log == processing EasyBuild easyconfig /tmp/tmptT2UQn/EasyBuild-3.5.1.eb == building and installing EasyBuild/3.5.1... == fetching files... == creating build dir, resetting environment... == unpacking... == patching... == preparing... == configuring... == building... == testing... == installing... == taking care of extensions... == postprocessing... == sanity checking... == cleaning up... == creating module... == permissions... == packaging... == COMPLETED: Installation ended successfully == Results of the build can be found in the log file(s) /home/cgchildr/.local/easybuild/software/EasyBuild/3.5.1/easybuild/easybuild-EasyBuild-3.5.1-20180206.100716.log == Build succeeded for 1 out of 1 == Temporary log file(s) /tmp/eb-cfzi_2/easybuild-1EbVJR.log* have been removed. == Temporary directory /tmp/eb-cfzi_2 has been removed. [[INFO]] EasyBuild module installed: /home/cgchildr/.local/easybuild/modules/all/EasyBuild/3.5.1.lua [[INFO]] Bootstrapping EasyBuild completed! [[INFO]] EasyBuild v3.5.1 was installed to /home/cgchildr/.local/easybuild, so make sure your $MODULEPATH includes /home/cgchildr/.local/easybuild/modules/all [[INFO]] Run 'module load EasyBuild', and run 'eb --help' to get help on using EasyBuild. [[INFO]] Set $EASYBUILD_MODULES_TOOL to 'Lmod' to use the same modules tool as was used now. [[INFO]] By default, EasyBuild will install software to $HOME/.local/easybuild. [[INFO]] To install software with EasyBuild to /home/cgchildr/.local/easybuild, make sure $EASYBUILD_INSTALLPATH is set accordingly. [[INFO]] See http://easybuild.readthedocs.org/en/latest/Configuration.html for details on configuring EasyBuild.

 

 

 

4] update $MODULEPATH, and load the EasyBuild module

module use $EASYBUILD_PREFIX/modules/all module load EasyBuild

 

$ which eb

~/.local/easybuild/software/EasyBuild/3.5.1/bin/eb

$ eb --version

This is EasyBuild 3.6.1 (framework: 3.6.1, easyblocks: 3.6.1) on host compile.vcu.edu.

Installation Centos 6

http://easybuild.readthedocs.io/en/latest/Installation.html

 

#On a cluster with grid engine, get a shell on a compute node

qrsh

#Check python version, usually python 2.6.6

python --version

#Enable more recent version of python, usually python 3.6.9

source /opt/rh/rh-python36/enable

python --version

#Upgrade pip, setuptools, and wheel in your local dirctory

pip install --user --upgrade pip

pip install --user --upgrade setuptools

pip install --user --upgrade wheel

#This python packages will be installed in your home directory here

ls -larth ${HOME}/.local/lib/python3.6/site-packages/

#Install easybuild using pip

pip install easybuild

 

##add more on how to enable and use easybuild

 

 

 

 

####

 

Old Instructions: Centos 6

 

How to deal with the error message: 

[[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with easy_install...
SystemExit: error: Could not find suitable distribution for Requirement.parse('vsc-install<0.11.4')

https://github.com/easybuilders/easybuild-framework/issues/2428

 

1] create directory in user home directory to install easybuild and set installation prefix

 

If you are on the godel or teal cluster, use qrsh at this point to get a shell on a compute node.

 

mkdir -p $HOME/.local/easybuild

EASYBUILD_PREFIX=$HOME/.local/easybuild

 

2] download install script


mkdir -p $HOME/.local/src
cd $HOME/.local/src

curl -O https://raw.githubusercontent.com/easybuilders/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py

curl -OL https://files.pythonhosted.org/packages/18/59/3274a58af6af84a87f7655735b452c06c769586ee73954f5ee15d303aa29/vsc-install-0.11.3.tar.gz
curl -OL https://files.pythonhosted.org/packages/62/e5/589612e47255627e4752d99018ae7cff8f49ab0fa6b4ba7b2226a76a05d3/vsc-base-2.8.3.tar.gz
curl -OL https://files.pythonhosted.org/packages/65/cd/90ba2c8619ccad8385a3bddf503a7fb8115e418accf1109e44b5db89bd63/easybuild-framework-3.9.4.tar.gz
curl -OL https://files.pythonhosted.org/packages/2b/db/2393a9555c69fcee3e206ce7fceeaf41a0e90695005b8e7c2146e77d409c/easybuild-easyblocks-3.9.4.tar.gz
curl -OL https://files.pythonhosted.org/packages/a3/62/1d26bd864009900d142ece57cb4b46ea3676b86adec72479c7d2da41db8a/easybuild-easyconfigs-3.9.4.tar.gz

#curl -OL https://files.pythonhosted.org/packages/c0/3a/88c89e39887487719786fb9ad39675443ddff5b0d2aee7fc88bd3daf83ba/easybuild-framework-3.8.0.tar.gz
#curl -OL https://files.pythonhosted.org/packages/c9/7d/6b02af21ad58679ea6c6ec51ca857f1d425e9f5d3be81137a6fea57b1211/easybuild-easyblocks-3.8.0.tar.gz
#curl -OL https://files.pythonhosted.org/packages/de/9e/46710d49342da1c7ba722131d8a33b167f7f1dfa6ffd8184fbe303a6824a/easybuild-easyconfigs-3.8.0.tar.gz
# specify location of pre-downloaded source tarballs for offline bootstrapping
export EASYBUILD_BOOTSTRAP_SOURCEPATH=$HOME/.local/src

3] bootstrap EasyBuild


python bootstrap_eb.py $EASYBUILD_PREFIX

 

Output should look like this and take about 10 minutes.

 

$ python bootstrap_eb.py $EASYBUILD_PREFIX [[INFO]] EasyBuild bootstrap script (version 20190523.01, MD5: 92196312d8e88843ffe83f21a51f0592) [[INFO]] Found Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) ; [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] [[INFO]] Installation prefix /home/cgchildr/.local/easybuild [[INFO]] Fetching sources from /home/cgchildr/.local/src... [[INFO]] Found module command '/usr/share/lmod/lmod/libexec/lmod' via $LMOD_CMD (Lmod), so using it. [[INFO]] No suitable setuptools installation found, proceeding with stage 0... [[INFO]] +++ STAGE 0: installing distribute via included (patched) distribute_setup.py... Downloading https://easybuilders.github.io/easybuild/files/distribute-0.6.49-patched1.tar.gz Extracting in /tmp/tmppkWiCa Now working in /tmp/tmppkWiCa/distribute-0.6.49 Installing Distribute [[INFO]] Installed setuptools version 0.6 (/tmp/tmp67F2UJ/lib/python2.6/site-packages/distribute-0.6.49-py2.6.egg/setuptools/__init__.pyc) [[INFO]] +++ STAGE 1: installing EasyBuild in temporary dir with easy_install... [[INFO]] Fetching sources from /home/cgchildr/.local/src... [[INFO]] Found /home/cgchildr/.local/src/vsc-install-0.11.3.tar.gz for vsc-install package [[INFO]] Found /home/cgchildr/.local/src/vsc-base-2.8.3.tar.gz for vsc-base package [[INFO]] Found /home/cgchildr/.local/src/easybuild-framework-3.9.4.tar.gz for easybuild-framework package [[INFO]] Found /home/cgchildr/.local/src/easybuild-easyblocks-3.9.4.tar.gz for easybuild-easyblocks package [[INFO]] Found /home/cgchildr/.local/src/easybuild-easyconfigs-3.9.4.tar.gz for easybuild-easyconfigs package [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmp67F2UJ/eb_stage1 /home/cgchildr/.local/src/vsc-install-0.11.3.tar.gz /home/cgchildr/.local/src/vsc-base-2.8.3.tar.gz /home/cgchildr/.local/src/easybuild-framework-3.9.4.tar.gz /home/cgchildr/.local/src/easybuild-easyblocks-3.9.4.tar.gz /home/cgchildr/.local/src/easybuild-easyconfigs-3.9.4.tar.gz vsc-install<0.11.4' [[INFO]] running pre-install command 'easy_install --quiet --upgrade --prefix=/tmp/tmp67F2UJ/eb_stage1 /home/cgchildr/.local/src/vsc-install-0.11.3.tar.gz /home/cgchildr/.local/src/vsc-base-2.8.3.tar.gz /home/cgchildr/.local/src/easybuild-framework-3.9.4.tar.gz /home/cgchildr/.local/src/easybuild-easyblocks-3.9.4.tar.gz /home/cgchildr/.local/src/easybuild-easyconfigs-3.9.4.tar.gz vsc-base<2.9.0' [[INFO]] installing EasyBuild with 'easy_install --quiet --upgrade --prefix=/tmp/tmp67F2UJ/eb_stage1 /home/cgchildr/.local/src/vsc-install-0.11.3.tar.gz /home/cgchildr/.local/src/vsc-base-2.8.3.tar.gz /home/cgchildr/.local/src/easybuild-framework-3.9.4.tar.gz /home/cgchildr/.local/src/easybuild-easyblocks-3.9.4.tar.gz /home/cgchildr/.local/src/easybuild-easyconfigs-3.9.4.tar.gz /home/cgchildr/.local/src/vsc-base-2.8.3.tar.gz' [[INFO]] +++ STAGE 2: installing EasyBuild in /home/cgchildr/.local/easybuild with EasyBuild from stage 1... == temporary log file in case of crash /tmp/eb-ncghKA/easybuild-QV746n.log == processing EasyBuild easyconfig /tmp/tmp67F2UJ/EasyBuild-3.9.4.eb == building and installing EasyBuild/3.9.4... == fetching files... == creating build dir, resetting environment... == unpacking... == patching... == preparing... == configuring... == building... == testing... == installing... == taking care of extensions... == restore after iterating... == postprocessing... == sanity checking... == cleaning up... == creating module... == permissions... == packaging... == COMPLETED: Installation ended successfully (took 16 min 17 sec) == Results of the build can be found in the log file(s) /home/cgchildr/.local/easybuild/software/EasyBuild/3.9.4/easybuild/easybuild-EasyBuild-3.9.4-20190918.144825.log == Build succeeded for 1 out of 1 == Temporary log file(s) /tmp/eb-ncghKA/easybuild-QV746n.log* have been removed. == Temporary directory /tmp/eb-ncghKA has been removed. [[INFO]] EasyBuild module installed: /home/cgchildr/.local/easybuild/modules/all/EasyBuild/3.9.4.lua [[INFO]] Bootstrapping EasyBuild completed! [[INFO]] EasyBuild v3.9.4 was installed to /home/cgchildr/.local/easybuild, so make sure your $MODULEPATH includes /home/cgchildr/.local/easybuild/modules/all [[INFO]] Run 'module load EasyBuild', and run 'eb --help' to get help on using EasyBuild. [[INFO]] Set $EASYBUILD_MODULES_TOOL to 'Lmod' to use the same modules tool as was used now. [[INFO]] By default, EasyBuild will install software to $HOME/.local/easybuild. [[INFO]] To install software with EasyBuild to /home/cgchildr/.local/easybuild, make sure $EASYBUILD_INSTALLPATH is set accordingly. [[INFO]] See http://easybuild.readthedocs.org/en/latest/Configuration.html for details on configuring EasyBuild.

 

Enable

Once you log into the server, use the following commands to enable EasyBuild. The module command will set all your variables that will add EasyBuild and its libraries to your path and environment:

 

source /usr/share/lmod/lmod/init/profile
export LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod

export EASYBUILD_INSTALLPATH=$HOME/.local/easybuild

export EASYBUILD_MODULES_TOOL=Lmod

export EASYBUILD_PREFIX=$EASYBUILD_INSTALLPATH

module use $EASYBUILD_PREFIX/modules/all

module load EasyBuild

 

 

Installing easyconfigs

 

http://easybuild.readthedocs.io/en/latest/Using_the_EasyBuild_command_line.html

https://easybuild.readthedocs.io/en/latest/Concepts_and_Terminology.html#easyblocks

 

eb --search <easyconfigs>

 

the switch --robot will resolve dependencies of the build

eb <easyconfig> --robot   

 

robot indicates that it will automatically resolve dependencies.

 

EasyBuild supports many compile toolchains; to see all available issue the following command. It shows the toolchain name along with the packages needed for that tool chain:

 

$ eb --list-toolchains List of known toolchains (toolchainname: module[,module...]): ClangGCC: Clang, GCC CrayCCE: PrgEnv-cray CrayGNU: PrgEnv-gnu CrayIntel: PrgEnv-intel CrayPGI: PrgEnv-pgi GCC: GCC GCCcore: GCCcore GNU: GCC PGI: PGI cgmpich: Clang, GCC, MPICH cgmpolf: BLACS, Clang, FFTW, GCC, MPICH, OpenBLAS, ScaLAPACK cgmvapich2: Clang, GCC, MVAPICH2 cgmvolf: BLACS, Clang, FFTW, GCC, MVAPICH2, OpenBLAS, ScaLAPACK cgompi: Clang, GCC, OpenMPI cgoolf: BLACS, Clang, FFTW, GCC, OpenBLAS, OpenMPI, ScaLAPACK dummy: foss: BLACS, FFTW, GCC, OpenBLAS, OpenMPI, ScaLAPACK gcccuda: CUDA, GCC gimkl: GCC, imkl, impi gimpi: GCC, impi gimpic: CUDA, GCC, impi giolf: BLACS, FFTW, GCC, OpenBLAS, ScaLAPACK, impi giolfc: BLACS, CUDA, FFTW, GCC, OpenBLAS, ScaLAPACK, impi gmacml: ACML, BLACS, FFTW, GCC, MVAPICH2, ScaLAPACK gmpich: GCC, MPICH gmpich2: GCC, MPICH2 gmpolf: BLACS, FFTW, GCC, MPICH, OpenBLAS, ScaLAPACK gmvapich2: GCC, MVAPICH2 gmvolf: BLACS, FFTW, GCC, MVAPICH2, OpenBLAS, ScaLAPACK goalf: ATLAS, BLACS, FFTW, GCC, OpenMPI, ScaLAPACK gompi: GCC, OpenMPI gompic: CUDA, GCC, OpenMPI goolf: BLACS, FFTW, GCC, OpenBLAS, OpenMPI, ScaLAPACK goolfc: BLACS, CUDA, FFTW, GCC, OpenBLAS, OpenMPI, ScaLAPACK gpsmpi: GCC, psmpi gpsolf: BLACS, FFTW, GCC, OpenBLAS, ScaLAPACK, psmpi gqacml: ACML, BLACS, FFTW, GCC, QLogicMPI, ScaLAPACK gsmpi: GCC, SpectrumMPI gsolf: BLACS, FFTW, GCC, OpenBLAS, ScaLAPACK, SpectrumMPI iccifort: icc, ifort iccifortcuda: CUDA, icc, ifort ictce: icc, ifort, imkl, impi iimkl: icc, ifort, imkl iimpi: icc, ifort, impi iimpic: CUDA, icc, ifort, impi iiqmpi: QLogicMPI, icc, ifort impich: MPICH, icc, ifort impmkl: MPICH, icc, ifort, imkl intel: icc, ifort, imkl, impi intel-para: icc, ifort, imkl, psmpi intelcuda: CUDA, icc, ifort, imkl, impi iomkl: OpenMPI, icc, ifort, imkl iompi: OpenMPI, icc, ifort ipsmpi: icc, ifort, psmpi iqacml: ACML, BLACS, FFTW, QLogicMPI, ScaLAPACK, icc, ifort ismkl: MPICH2, icc, ifort, imkl pomkl: OpenMPI, PGI, imkl pompi: OpenMPI, PGI xlcxlf: xlc, xlf xlmpich: MPICH, xlc, xlf xlmpich2: MPICH2, xlc, xlf xlmvapich2: MVAPICH2, xlc, xlf xlompi: OpenMPI, xlc, xlf

 

Since many easyconfigs are built on the foss (Free Open Source Software) toolchain, go ahead and install one of the foss toolchains first.  This will take a long time.

eb foss-2018b.eb --robot

 

easybuild-foss
aa

 

 

 

To find the exact name of an easyconfig, use the find command:

find ~/.local/easybuild -name *foss*

 

After an easyconfig has been installed, it may need to be enabled using the "modules" command.

To see all available modules, use the command:

module spider

 

To see all modules installed, use:

module avail

 

Troubleshooting hints

Many of the builds are not guaranteed to work. In case of failure, if there is a previous version available, try that one.

enable debug mode

before the typical easybuild commands, give:

 

export EASYBUILD_BOOTSTRAP_DEBUG=1

 

unable to install java

 

ERROR: Build of /home/cgchildr/.local/easybuild/software/EasyBuild/3.5.1/lib/python2.7/site-packages/easybuild_easyconfigs-3.5.1-py2.7.egg/easybuild/easyconfigs/j/Java/Java-1.8.0_112.eb failed (err: "build failed (first 300 chars): Couldn't find file jdk-8u112-linux-x64.tar.gz anywhere, and downloading it didn't work either... Paths attempted (in order): /home/cgchildr/.local/easybuild/software/EasyBuild/3.5.1/lib/python2.7/site-packages/easybuild_easyconfigs-3.5.1-py2.7.egg/easybuild/easyconfigs/j/Java/j/Java/jdk-8u112-linux-")

 

Oracle java no longer allows direct download of older versions of java without an oracle account.  Manually download by going to this site:

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

Create an oracle account and manually download the desired version of java. Transfer it to the server and place it in:

$HOME/.local/easybuild/sources/j/Java/

continue eb install normally, it will find the source in this location.