Skip to content
Snippets Groups Projects
Commit eaffa231 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Adding install scripts

parent 19ccc291
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# check if the directory $1/BOOST exist
if [ -d "$1/BOOST" ]; then
echo "BOOST already installed"
exit 0
fi
wget http://ppmcore.mpi-cbg.de/upload/boost_1_68_0.tar.bz2
tar -xvf boost_1_68_0.tar.bz2
cd boost_1_68_0
if [ x"$4" != x"" ]; then
if [ -f $HOME/user-config.jam ]; then
mv $HOME/user-config.jam $HOME/user-config.jam_bck
fi
if [ x"$5" != x"" ]; then
echo "using gcc : $5.$6 : $4 ; " > $HOME/user-config.jam
else
echo "using gcc : : $4 ; " > $HOME/user-config.jam
fi
fi
./bootstrap.sh --with-toolset=$3
mkdir $1/BOOST
./b2 -j $2 install --prefix=$1/BOOST
rm -rf boost_1_68_0
if [ -f $HOME/user-config.jam_bck ]; then
mv $HOME/user-config.jam_bck $HOME/user-config.jam
fi
rm -rf boost_1_68_0.tar.bz2
#! /bin/bash
source script/discover_os
discover_os
# check if the directory $1/HDF5 exist
if [ -d "$1/HDF5" -a -f "$1/HDF5/include/hdf5.h" ]; then
echo "HDF5 is already installed"
exit 0
fi
if [ ! -d "$1/ZLIB" -a x"$platform" != x"cygwin" ]; then
rm zlib-1.2.11.tar.gz
rm -rf zlib-1.2.11
wget https://zlib.net/zlib-1.2.11.tar.gz
if [ $? -ne 0 ]; then
echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m"
exit 1
fi
tar -xf zlib-1.2.11.tar.gz
cd zlib-1.2.11
CC=mpicc ./configure --prefix=$1/ZLIB
make -j $2
if [ $? -eq 0 ]; then
make check install
else
echo -e "\033[91;5;1m ZLIB Installation FAILED \033[0m"
exit 1
fi
else
echo "ZLIB is already installed"
fi
### 1.8.19 does not compile on CYGWIN
wget http://ppmcore.mpi-cbg.de/upload/hdf5-1.8.19.tar.gz
tar -xf hdf5-1.8.19.tar.gz
cd hdf5-1.8.19
if [ x"$platform" != x"cygwin" ]; then
CC=mpicc ./configure --with-zlib=$1/ZLIB --enable-parallel --prefix=$1/HDF5
make -j $2
else
CC=mpicc ./configure --enable-parallel --prefix=$1/HDF5
make CFLAGS=-D_POSIX_C_SOURCE -j $2
fi
mkdir $1/HDF5
make install
if [ $? -ne 0 ]; then
echo "HDF5 error installing"
exit 0
fi
echo 1 > $1/HDF5/version
#!/bin/bash
# check if the directory $1/MPI exist
if [ -d "$1/MPI" ]; then
echo "MPI already installed"
exit 0
fi
rm -rf mpich-3.3
rm mpich-3.3.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/mpich-3.3.tar.gz
tar -xvf mpich-3.3.tar.gz
cd mpich-3.3
#
# --disable-mca-dso \
# --disable-sysv-shmem \
# --enable-cxx-exceptions \
# --with-threads=posix \
# --without-cs-fs \
# --with-mpi-param_check=always \
# --enable-contrib-no-build=vt,libompitrace \
#
#--enable-mca-no-build=paffinity,installdirs-windows,timer-windows,shmem-sysv
#
#
if [ x"$6" == x"1" ]; then
echo "Installing MPI with GPU support"
./configure --prefix=$1/MPI --enable-fortran CC=$3 CXX=$4 F77=$5 FC=$5
else
echo "Installing MPI without GPU support"
./configure --prefix=$1/MPI --enable-fortran CC=$3 CXX=$4 F77=$5 FC=$5
fi
make -j $2
make install
# Mark the installation
echo 4 > $1/MPI/version
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment