Commit f3c205ff authored by Matthieu Boileau's avatar Matthieu Boileau

Gather some variable and functions in a common.sh file

parent d4eb46fb
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="AMD-APP-SDK" LIB_NAME="AMD-APP-SDK"
LIB_VERSION=3.0.130.136 LIB_VERSION=3.0.130.136
SUB_DIR=${LIB_NAME}/${LIB_VERSION} SUB_DIR=${LIB_NAME}/${LIB_VERSION}
SRC_DIR=/data/software/sources/${LIB_NAME} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_NAME}
TARBALL="${LIB_NAME}Installer-v${LIB_VERSION}-GA-linux64.tar.bz2" TARBALL="${LIB_NAME}Installer-v${LIB_VERSION}-GA-linux64.tar.bz2"
INSTALL_SCRIPT="${LIB_NAME}-v${LIB_VERSION}-GA-linux64.sh" INSTALL_SCRIPT="${LIB_NAME}-v${LIB_VERSION}-GA-linux64.sh"
TARGET_DIR=/data/software/install/${SUB_DIR} TARGET_DIR=/data/software/install/${SUB_DIR}
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="boost" LIB_NAME="boost"
LIB_VERSION=1.65.0 LIB_VERSION=1.65.0
LIB_VERSION_DOWNLOAD=1_65_0 LIB_VERSION_DOWNLOAD=1_65_0
...@@ -14,14 +15,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}" ...@@ -14,14 +15,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION} MPI_FULL=${MPI_LIB}-${MPI_VERSION}
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}" MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="https://sourceforge.net/projects/boost/files/boost/${LIB_VERSION}/boost_${LIB_VERSION_DOWNLOAD}.tar.gz" URL="https://sourceforge.net/projects/boost/files/boost/${LIB_VERSION}/boost_${LIB_VERSION_DOWNLOAD}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/libs/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib() install_lib()
......
#!/bin/bash #!/bin/bash
set -x
source ../common.sh
################################################################################ ################################################################################
# GENERIC: Base directory for source, install, build. # GENERIC: Base directory for source, install, build.
SOURCE_BASE_DIR=/data/software/sources SOURCE_BASE_DIR=${PREWORK_DIR}
BUILD_BASE_DIR=/data/software/sources BUILD_BASE_DIR=${PREWORK_DIR}
INSTALL_BASE_DIR=/data/software/install INSTALL_BASE_DIR=${PREINSTALL_DIR}
MODULE_BASE_DIR=/data/software/modules MODULE_BASE_DIR=${PREMODULE_DIR}
################################################################################ ################################################################################
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="cmake" LIB_NAME="cmake"
LIB_VERSION=3.9.2 LIB_VERSION=3.9.2
GCC_VERSION=6.4.0 GCC_VERSION=6.4.0
...@@ -10,14 +11,14 @@ LIB_VERSION_SHORT="${LIB_VERSION%.*}" ...@@ -10,14 +11,14 @@ LIB_VERSION_SHORT="${LIB_VERSION%.*}"
GCC_FULL=gcc-$GCC_VERSION GCC_FULL=gcc-$GCC_VERSION
GCC_SHORT="gcc${GCC_VERSION//.}" GCC_SHORT="gcc${GCC_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="https://cmake.org/files/v${LIB_VERSION_SHORT}/${LIB_FULLNAME}.tar.gz" URL="https://cmake.org/files/v${LIB_VERSION_SHORT}/${LIB_FULLNAME}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/tools/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/tools/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}
install_lib() install_lib()
......
#!/bin/bash
set -x
# You may tune this section
#SOFT_DIR="/data/software"
SOFT_DIR="/Users/boileau/software"
PREWORK_DIR=${SOFT_DIR}/sources
PREINSTALL_DIR=${SOFT_DIR}/install
PREMODULE_DIR=${SOFT_DIR}/modules
###
mkdir -p $PREWORK_DIR
mkdir -p $PREINSTALL_DIR
mkdir -p $PREMODULE_DIR
clean_dir()
{
if [[ -d $1 ]]
then
rm -rf $1
else
echo "WARNING: $1 does not exist"
fi
}
clean_all()
{
clean_dir $SRC_DIR
clean_dir $BUILD_DIR
}
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_VERSION=develop LIB_VERSION=develop
GCC_VERSION=6.4.0 GCC_VERSION=6.4.0
MPI_LIB=openmpi MPI_LIB=openmpi
...@@ -16,17 +17,17 @@ LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION} ...@@ -16,17 +17,17 @@ LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
LIB_TOOLBOXES_FULLNAME=${LIB_TOOLBOXES_NAME}-${LIB_VERSION} LIB_TOOLBOXES_FULLNAME=${LIB_TOOLBOXES_NAME}-${LIB_VERSION}
SUB_LIB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_LIB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
SUB_TOOLBOXES_DIR=${LIB_TOOLBOXES_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_TOOLBOXES_DIR=${LIB_TOOLBOXES_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
SRC_DIR=/data/software/sources/${SUB_LIB_DIR} SRC_DIR=${PREWORK_DIR}/${SUB_LIB_DIR}
GIT_URL="https://github.com/feelpp/feelpp.git" GIT_URL="https://github.com/feelpp/feelpp.git"
BUILD_LIB_DIR=${SRC_DIR}/build-lib BUILD_LIB_DIR=${SRC_DIR}/build-lib
BUILD_TOOLBOXES_DIR=${SRC_DIR}/build-toolboxes BUILD_TOOLBOXES_DIR=${SRC_DIR}/build-toolboxes
INSTALL_LIB_DIR=/data/software/install/${SUB_LIB_DIR} INSTALL_LIB_DIR=${PREINSTALL_DIR}/${SUB_LIB_DIR}
INSTALL_TOOLBOXES_DIR=/data/software/install/${SUB_TOOLBOXES_DIR} INSTALL_TOOLBOXES_DIR=${PREINSTALL_DIR}/${SUB_TOOLBOXES_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_LIB_DIR=/data/software/modules/libs/${LIB_NAME} MODULE_LIB_DIR=${PREMODULE_DIR}/libs/${LIB_NAME}
MODULE_LIB_PATH=${MODULE_LIB_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_LIB_PATH=${MODULE_LIB_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
MODULE_LIB_NAME=${LIB_NAME}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_LIB_NAME=${LIB_NAME}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
MODULE_TOOLBOXES_DIR=/data/software/modules/libs/${LIB_TOOLBOXES_NAME} MODULE_TOOLBOXES_DIR=${PREMODULE_DIR}/libs/${LIB_TOOLBOXES_NAME}
MODULE_TOOLBOXES_PATH=${MODULE_TOOLBOXES_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_TOOLBOXES_PATH=${MODULE_TOOLBOXES_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
FEELPP_PROFILE=feelpp.profile_${GCC_SHORT}_${MPI_SHORT} FEELPP_PROFILE=feelpp.profile_${GCC_SHORT}_${MPI_SHORT}
......
...@@ -13,15 +13,15 @@ GCC_SHORT="gcc${GCC_VERSION//.}" ...@@ -13,15 +13,15 @@ GCC_SHORT="gcc${GCC_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION} MPI_FULL=${MPI_LIB}-${MPI_VERSION}
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}" MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}-pl2 SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}-pl2
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="http://www.fftw.org/${LIB_FULLNAME}-pl2.tar.gz" URL="http://www.fftw.org/${LIB_FULLNAME}-pl2.tar.gz"
#URL="http://75.98.172.202/${LIB_FULLNAME}-pl2.tar.gz" #URL="http://75.98.172.202/${LIB_FULLNAME}-pl2.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/libs/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib() install_lib()
......
...@@ -3,10 +3,10 @@ set -x ...@@ -3,10 +3,10 @@ set -x
################################################################################ ################################################################################
# GENERIC: Base directory for source, install, build. # GENERIC: Base directory for source, install, build.
SOURCE_BASE_DIR=/data/software/sources SOURCE_BASE_DIR=${PREWORK_DIR}
BUILD_BASE_DIR=/data/software/sources BUILD_BASE_DIR=${PREWORK_DIR}
INSTALL_BASE_DIR=/data/software/install INSTALL_BASE_DIR=${PREINSTALL_DIR}
MODULE_BASE_DIR=/data/software/modules MODULE_BASE_DIR=${PREMODULE_DIR}
MODULE_CATEGORY="libs" MODULE_CATEGORY="libs"
################################################################################ ################################################################################
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
#!/bin/bash #!/bin/bash
set -x set -x
cd /data/software/sources cd /data/software/sources
mkdir ganglia mkdir ganglia
cd ganglia cd ganglia
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
export LIB_NAME="gcc" export LIB_NAME="gcc"
export LIB_VERSION=6.4.0 export LIB_VERSION=6.4.0
export LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION} export LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
#export LIB_VERSION_SHORT="${LIB_VERSION//.}" #export LIB_VERSION_SHORT="${LIB_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION} SUB_DIR=${LIB_NAME}/${LIB_VERSION}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-${LIB_VERSION}/gcc-${LIB_VERSION}.tar.gz" URL="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-${LIB_VERSION}/gcc-${LIB_VERSION}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
export INSTALL_DIR=/data/software/install/${SUB_DIR} export INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/compilers/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/compilers/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}
install_lib() install_lib()
......
...@@ -9,14 +9,14 @@ LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION} ...@@ -9,14 +9,14 @@ LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION GCC_FULL=gcc-$GCC_VERSION
GCC_SHORT="gcc${GCC_VERSION//.}" GCC_SHORT="gcc${GCC_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}-source SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}-source
ARCHIVE=${WORK_DIR}/${LIB_FULLNAME}.tgz ARCHIVE=${WORK_DIR}/${LIB_FULLNAME}.tgz
URL="http://gmsh.info/src/gmsh-${LIB_VERSION}-source.tgz" URL="http://gmsh.info/src/gmsh-${LIB_VERSION}-source.tgz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/libs/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}
install_lib() install_lib()
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="hdf5" LIB_NAME="hdf5"
LIB_VERSION=1.10.1 LIB_VERSION=1.10.1
GCC_VERSION=6.4.0 GCC_VERSION=6.4.0
...@@ -13,14 +14,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}" ...@@ -13,14 +14,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION} MPI_FULL=${MPI_LIB}-${MPI_VERSION}
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}" MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="https://www.hdfgroup.org/package/gzip/?wpdmdl=4301" URL="https://www.hdfgroup.org/package/gzip/?wpdmdl=4301"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/libs/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib() install_lib()
...@@ -75,6 +76,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl ...@@ -75,6 +76,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]] if [[ $1 == "module" ]]
then then
install_module install_module
elif [[ $1 == "clean" ]]
then
clean_all
else else
install_lib install_lib
install_module install_module
......
...@@ -2,17 +2,18 @@ ...@@ -2,17 +2,18 @@
# See https://wiki.tiker.net/OpenCLHowTo#Installing_the_Intel_CPU_ICD # See https://wiki.tiker.net/OpenCLHowTo#Installing_the_Intel_CPU_ICD
set -x source ../common.sh
export LIB_NAME="intel-opencl" export LIB_NAME="intel-opencl"
export LIB_VERSION="1.2-6.4.0.37" export LIB_VERSION="1.2-6.4.0.37"
export LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION} export LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
SUB_DIR=${LIB_NAME}/${LIB_VERSION} SUB_DIR=${LIB_NAME}/${LIB_VERSION}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${WORK_DIR}/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz ARCHIVE=${WORK_DIR}/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz
URL="http://registrationcenter-download.intel.com/akdlm/irc_nas/12556/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz" URL="http://registrationcenter-download.intel.com/akdlm/irc_nas/12556/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz"
export INSTALL_DIR=/data/software/install/${SUB_DIR} export INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
install_lib() install_lib()
{ {
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="llvm" LIB_NAME="llvm"
LIB_VERSION=5.0.0 #4.0.1 LIB_VERSION=5.0.0 #4.0.1
GCC_VERSION=6.4.0 GCC_VERSION=6.4.0
...@@ -9,7 +10,7 @@ LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION} ...@@ -9,7 +10,7 @@ LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION GCC_FULL=gcc-$GCC_VERSION
GCC_SHORT="gcc${GCC_VERSION//.}" GCC_SHORT="gcc${GCC_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
URL_LLVM="http://releases.llvm.org/${LIB_VERSION}/llvm-${LIB_VERSION}.src.tar.xz" URL_LLVM="http://releases.llvm.org/${LIB_VERSION}/llvm-${LIB_VERSION}.src.tar.xz"
URL_CFE="http://releases.llvm.org/${LIB_VERSION}/cfe-${LIB_VERSION}.src.tar.xz" URL_CFE="http://releases.llvm.org/${LIB_VERSION}/cfe-${LIB_VERSION}.src.tar.xz"
...@@ -20,11 +21,11 @@ URL_COMPILER_RT="http://releases.llvm.org/${LIB_VERSION}/compiler-rt-${LIB_VERSI ...@@ -20,11 +21,11 @@ URL_COMPILER_RT="http://releases.llvm.org/${LIB_VERSION}/compiler-rt-${LIB_VERSI
URL_OPENMP="http://releases.llvm.org/${LIB_VERSION}/openmp-${LIB_VERSION}.src.tar.xz" URL_OPENMP="http://releases.llvm.org/${LIB_VERSION}/openmp-${LIB_VERSION}.src.tar.xz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/compilers/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/compilers/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}
MODULE_CLANG_PATH=/data/software/modules/compilers/clang/${LIB_VERSION}_${GCC_SHORT} MODULE_CLANG_PATH=${PREMODULE_DIR}/compilers/clang/${LIB_VERSION}_${GCC_SHORT}
install_lib() install_lib()
......
#!/bin/bash #!/bin/bash
set -x
source /etc/profile.d/modules.sh source ../common.sh
################################################################################ ################################################################################
# GENERIC: Base directory for source, install, build. # GENERIC: Base directory for source, install, build.
SOURCE_BASE_DIR=/data/software/sources SOURCE_BASE_DIR=${PREWORK_DIR}
BUILD_BASE_DIR=/data/software/sources BUILD_BASE_DIR=${PREWORK_DIR}
INSTALL_BASE_DIR=/data/software/install INSTALL_BASE_DIR=${PREINSTALL_DIR}
MODULE_BASE_DIR=/data/software/modules MODULE_BASE_DIR=${PREMODULE_DIR}
################################################################################ ################################################################################
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="openmpi" LIB_NAME="openmpi"
LIB_MAJOR_VERSION=1.10 LIB_MAJOR_VERSION=1.10
LIB_VERSION=${LIB_MAJOR_VERSION}.7 LIB_VERSION=${LIB_MAJOR_VERSION}.7
...@@ -9,14 +10,14 @@ GCC_VERSION=6.4.0 ...@@ -9,14 +10,14 @@ GCC_VERSION=6.4.0
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION} LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_VERSION_SHORT="${GCC_VERSION//.}" GCC_VERSION_SHORT="${GCC_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/gcc-${GCC_VERSION} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/gcc-${GCC_VERSION}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="https://www.open-mpi.org/software/ompi/v${LIB_MAJOR_VERSION}/downloads/${LIB_NAME}-${LIB_VERSION}.tar.gz" URL="https://www.open-mpi.org/software/ompi/v${LIB_MAJOR_VERSION}/downloads/${LIB_NAME}-${LIB_VERSION}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/mpi/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/mpi/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_gcc${GCC_VERSION_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_gcc${GCC_VERSION_SHORT}
module purge module purge
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="paraview" LIB_NAME="paraview"
LIB_VERSION_URL=5.4.1 LIB_VERSION_URL=5.4.1
LIB_VERSION=${LIB_VERSION_URL}-py3 LIB_VERSION=${LIB_VERSION_URL}-py3
...@@ -17,14 +18,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}" ...@@ -17,14 +18,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION} MPI_FULL=${MPI_LIB}-${MPI_VERSION}
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}" MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${LIB_VERSION_SHORT}&type=binary&os=Sources&downloadFile=ParaView-v${LIB_VERSION_URL}.tar.gz" URL="https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${LIB_VERSION_SHORT}&type=binary&os=Sources&downloadFile=ParaView-v${LIB_VERSION_URL}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/tools/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/tools/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="pastix" LIB_NAME="pastix"
LIB_VERSION=5.2.3 LIB_VERSION=5.2.3
GCC_VERSION=6.4.0 GCC_VERSION=6.4.0
...@@ -15,13 +16,13 @@ GCC_SHORT="gcc${GCC_VERSION//.}" ...@@ -15,13 +16,13 @@ GCC_SHORT="gcc${GCC_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION} MPI_FULL=${MPI_LIB}-${MPI_VERSION}
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}" MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="https://gforge.inria.fr/frs/download.php/file/36212/${pastix}_${LIB_VERSION}.tar.bz2" URL="https://gforge.inria.fr/frs/download.php/file/36212/${pastix}_${LIB_VERSION}.tar.bz2"
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/libs/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib() install_lib()
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="petsc" LIB_NAME="petsc"
LIB_VERSION=3.8.3 #3.7.6 LIB_VERSION=3.8.3 #3.7.6
GCC_VERSION=6.4.0 GCC_VERSION=6.4.0
...@@ -13,14 +14,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}" ...@@ -13,14 +14,14 @@ GCC_SHORT="gcc${GCC_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION} MPI_FULL=${MPI_LIB}-${MPI_VERSION}
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}" MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL} SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME} SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz ARCHIVE=${SRC_DIR}.tar.gz
URL="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${LIB_VERSION}.tar.gz" URL="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-${LIB_VERSION}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/libs/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT} MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib() install_lib()
......
#!/bin/bash #!/bin/bash
set -x
source ../common.sh
################################################################################ ################################################################################
# GENERIC: Base directory for source, install, build. # GENERIC: Base directory for source, install, build.
SOURCE_BASE_DIR=/data/software/sources SOURCE_BASE_DIR=${PREWORK_DIR}
BUILD_BASE_DIR=/data/software/sources BUILD_BASE_DIR=${PREWORK_DIR}
INSTALL_BASE_DIR=/data/software/install INSTALL_BASE_DIR=${PREINSTALL_DIR}
MODULE_BASE_DIR=/data/software/modules MODULE_BASE_DIR=${PREMODULE_DIR}
################################################################################ ################################################################################
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
#!/bin/bash #!/bin/bash
set -x
source ../common.sh
################################################################################ ################################################################################
# GENERIC: Base directory for source, install, build. # GENERIC: Base directory for source, install, build.
SOURCE_BASE_DIR=/data/software/sources SOURCE_BASE_DIR=${PREWORK_DIR}
BUILD_BASE_DIR=/data/software/sources BUILD_BASE_DIR=${PREWORK_DIR}
INSTALL_BASE_DIR=/data/software/install INSTALL_BASE_DIR=${PREINSTALL_DIR}
MODULE_BASE_DIR=/data/software/modules MODULE_BASE_DIR=${PREMODULE_DIR}
################################################################################ ################################################################################
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
#!/bin/bash #!/bin/bash
set -x source ../common.sh
LIB_NAME="qt" LIB_NAME="qt"
LIB_VERSION_SHORT=5.6 LIB_VERSION_SHORT=5.6
LIB_VERSION=${LIB_VERSION_SHORT}.2 LIB_VERSION=${LIB_VERSION_SHORT}.2
...@@ -8,13 +9,13 @@ LIB_VERSION=${LIB_VERSION_SHORT}.2 ...@@ -8,13 +9,13 @@ LIB_VERSION=${LIB_VERSION_SHORT}.2
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION} LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
LIB_VERSION_VERYSHORT="${LIB_VERSION_SHORT//.}" LIB_VERSION_VERYSHORT="${LIB_VERSION_SHORT//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION_SHORT} SUB_DIR=${LIB_NAME}/${LIB_VERSION_SHORT}
WORK_DIR=/data/software/sources/${SUB_DIR} WORK_DIR=${PREWORK_DIR}/${SUB_DIR}
BUILD_SCRIPT=qt-opensource-linux-x64-${LIB_VERSION}.run BUILD_SCRIPT=qt-opensource-linux-x64-${LIB_VERSION}.run
QS_SCRIPT_PREFIX=qt-installer-noninteractive QS_SCRIPT_PREFIX=qt-installer-noninteractive
URL="http://download.qt.io/official_releases/qt/${LIB_VERSION_SHORT}/${LIB_VERSION}/${BUILD_SCRIPT}" URL="http://download.qt.io/official_releases/qt/${LIB_VERSION_SHORT}/${LIB_VERSION}/${BUILD_SCRIPT}"
INSTALL_DIR=/data/software/install/${SUB_DIR} INSTALL_DIR=${PREINSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=/data/software/modules/tools/${LIB_NAME} MODULE_DIR=${PREMODULE_DIR}/tools/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}