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

Disable ZLIB

parent 6a51f381
No related branches found
No related tags found
No related merge requests found
Pipeline #4655 passed
...@@ -11,30 +11,30 @@ if [ -d "$1/HDF5" -a -f "$1/HDF5/include/hdf5.h" ]; then ...@@ -11,30 +11,30 @@ if [ -d "$1/HDF5" -a -f "$1/HDF5/include/hdf5.h" ]; then
exit 0 exit 0
fi fi
if [ ! -d "$1/ZLIB" -a x"$platform" != x"cygwin" ]; then #if [ ! -d "$1/ZLIB" -a x"$platform" != x"cygwin" ]; then
rm zlib-1.2.12.tar.gz # rm zlib-1.2.12.tar.gz
rm -rf zlib-1.2.12 # rm -rf zlib-1.2.12
wget http://zlib.net/zlib-1.2.12.tar.gz # wget http://zlib.net/zlib-1.2.12.tar.gz
if [ $? -ne 0 ]; then # if [ $? -ne 0 ]; then
echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m" # echo -e "\033[91;5;1m FAILED! Installation requires an Internet connection \033[0m"
exit 1 # exit 1
fi # fi
tar -xf zlib-1.2.12.tar.gz # tar -xf zlib-1.2.12.tar.gz
cd zlib-1.2.12 # cd zlib-1.2.12
CC=mpicc CFLAGS=-fPIC ./configure --prefix=$1/ZLIB # CC=mpicc CFLAGS=-fPIC ./configure --prefix=$1/ZLIB
make -j $2 # make -j $2
if [ $? -eq 0 ]; then # if [ $? -eq 0 ]; then
make check install # make check install
else # else
echo -e "\033[91;5;1m ZLIB Installation FAILED \033[0m" # echo -e "\033[91;5;1m ZLIB Installation FAILED \033[0m"
exit 1 # exit 1
fi # fi
cd .. # cd ..
else #else
echo "ZLIB is already installed" # echo "ZLIB is already installed"
fi #fi
### 1.8.19 does not compile on CYGWIN ### 1.8.19 does not compile on CYGWIN
......
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