Hi Fotis,
Nice, great tricks! Please document this somewhere on your EasyBuild
wiki, and open an issue to pull it in at the main wiki.
One remark though, is this just a copy-paste of the commands?
Because according to module function you redefine in .bashrc, the
install requires a 2nd argument, but your example doesn't use any?
BTW: a similar, but more advanced, feature is being added to EasyBuild,
that allow you to just specify a software name (and optionally version
and toolkit), and then EasyBuild will try it's very best to find (and
optinally tweak) an easyconfig that can be used to build what's requested.
(see https://github.com/boegel/easybuild/tree/318-change-toolkit, it's
not finished yet though)
K.
On 08/19/2012 10:32 AM, Fotis Georgatos wrote:
No check the following and smile ;-)
fgeorgatos@gaia-1:~$ module search zlib
/home/clusterusers/fgeorgatos/easybuild/easybuild/easyconfigs/z/zlib/zlib-1.2.5-goalf-1.1.0-no-OFED.eb
/home/clusterusers/fgeorgatos/easybuild/easybuild/easyconfigs/z/zlib/zlib-1.2.5-ictce-3.2.2.u3.eb
/home/clusterusers/fgeorgatos/easybuild/easybuild/easyconfigs/z/zlib/zlib-1.2.7-goalf-1.1.0-no-OFED.eb
/home/clusterusers/fgeorgatos/easybuild/easybuild/easyconfigs/z/zlib/zlib-1.2.7-ictce-3.2.2.u3.eb
/home/clusterusers/fgeorgatos/arena/pkg2eb/outdir/Compress-Raw-Zlib-2.051.eb
/home/clusterusers/fgeorgatos/arena/pkg2eb/outdir/IO-Zlib-1.10.eb
/home/clusterusers/fgeorgatos/arena/pkg2eb/outdir/zlib-1.2.7.eb
fgeorgatos@gaia-1:~$ module install
/home/clusterusers/fgeorgatos/easybuild/easybuild/easyconfigs/z/zlib/zlib-1.2.5-goalf-1.1.0-no-OFED.eb
== resolving dependencies ...
== processing EasyBuild easyconfig
/home/clusterusers/fgeorgatos/easybuild/easybuild/easyconfigs/z/zlib/zlib-1.2.5-goalf-1.1.0-no-OFED.eb
== preparing...
== unpacking...
== configuring...
== building...
== testing...
== installing...
== finishing up...
== COMPLETED: Installation ended successfully
== Results of the build can be found in the log file
/home/clusterusers/fgeorgatos/.local/easybuild/software/zlib/1.2.5-goalf-1.1.0-no-OFED/easybuild/easybuild-zlib-1.2.5-20120819.102605.log
== Build succeeded for 1 out of 1
fgeorgatos@gaia-1:~$ module avail
-----------------------------------------------------------
/home/clusterusers/fgeorgatos/.local/easybuild/modules/all/
-----------------------------------------------------------
OpenFOAM/2.1.1-goalf-1.1.0-no-OFED Python/3.2.3-goalf-1.1.0-no-OFED.orig
zlib/1.2.5-goalf-1.1.0-no-OFED
Python/3.2.3-goalf-1.1.0-no-OFED Python/3.2.3-goalf-1.1.0-no-OFED.orig2
-------------------------------------------------------------------------
/opt/apps/easybuild/modules/all
-------------------------------------------------------------------------
ATLAS/3.8.4-GCC-4.6.3
MrBayes/3.1.2-goalf-1.1.0-no-OFED
ATLAS/3.8.4-GCC-4.6.3-LAPACK-3.4.0
OpenMPI/1.4.5-GCC-4.6.3-no-OFED
ATLAS/3.8.4-GCC-4.6.3-with-shared-libs
OpenMPI/1.6-GCC-4.6.3-no-OFED
BLACS/1.1-GCC-4.6.3-OpenMPI-1.4.5-no-OFED
Python/2.7.3-goalf-1.1.0-no-OFED
Bison/2.5-goalf-1.1.0-no-OFED
ScaLAPACK/1.8.0-GCC-4.6.3-OpenMPI-1.4.5-no-OFED-ATLAS-3.8.4-LAPACK-3.4.0-BLACS-1.1
Doxygen/1.8.1.1-goalf-1.1.0-no-OFED
ScaLAPACK/2.0.1-GCC-4.6.3-OpenMPI-1.4.5-no-OFED-ATLAS-3.8.4-LAPACK-3.4.0
FFTW/3.3.1-GCC-4.6.3-OpenMPI-1.4.5-no-OFED
Szip/2.1-goalf-1.1.0-no-OFED
GCC/4.5.3
WPS/3.3.1-goalf-1.1.0-no-OFED-dmpar
GCC/4.5.3-CLooG-PPL
WRF/3.3.1-goalf-1.1.0-no-OFED-dmpar
GCC/4.6.3
flex/2.5.35-goalf-1.1.0-no-OFED
GCC/4.6.3-CLooG-PPL
g2clib/1.2.3-goalf-1.1.0-no-OFED
GCC/4.7.0
g2lib/1.2.4-goalf-1.1.0-no-OFED
GCC/4.7.0-CLooG-PPL
goalf/1.1.0-no-OFED
HDF/4.2.7-patch1-goalf-1.1.0-no-OFED
gsl/1.15-goalf-1.1.0-no-OFED-20120724
HDF5/1.8.7-goalf-1.1.0-no-OFED
libpng/1.5.10-goalf-1.1.0-no-OFED
HDF5/1.8.9-goalf-1.1.0-no-OFED
libpng/1.5.11-goalf-1.1.0-no-OFED
HPL/2.0-goalf-1.1.0-no-OFED
netCDF/4.1.3-goalf-1.1.0-no-OFED
JasPer/1.900.1-goalf-1.1.0-no-OFED
netCDF/4.2-goalf-1.1.0-no-OFED
LAPACK/3.4.0-GCC-4.6.3
netCDF-Fortran/4.2-goalf-1.1.0-no-OFED
LAPACK/3.4.0-GCC-4.6.3-ATLAS-3.8.4
zlib/1.2.5-goalf-1.1.0-no-OFED
Libint/1.1.4-goalf-1.1.0-no-OFED
zlib/1.2.7-goalf-1.1.0-no-OFED
M4/1.4.16-goalf-1.1.0-no-OFED
fgeorgatos@gaia-1:~$
### what to add in your .bashrc ###
export
EBPATH=~/easybuild/easybuild/easyconfigs:~/.local/easybuild/ebfiles_repo/:~/arena/pkg2eb/outdir/
# adjust as needed
module() {
if [ "$1" = "search" ]
then
if [ -z "$2" ]
then
echo "Not enough params passed for search"
return
else
echo $EBPATH|tr : '\n'|xargs -n1 -I % find % -name '*.eb'|grep -i $2
return
fi
fi
if [ "$1" = "install" ]
then
if [ -z "$2" ]
then
echo "Not enough params passed for install"
return
else
shift
${EBHOME}/eb --robot ${CFGS} "$@"
return
fi
fi
eval `/usr/bin/modulecmd bash $*`
}