install_hdf5.sh 974 Bytes
Newer Older
1
2
3
4
hdf5_version=1.10.2
if [ ! -r CMake-hdf5-${hdf5_version} ]
then
    #Get the file with the code
Matthias Redies's avatar
Matthias Redies committed
5
6
7
8
9
10
11
    curl -LO "https://github.com/MRedies/hdf5-mirror/raw/master/CMake-hdf5-${hdf5_version}.tar.gz"

    if [ ! -f CMake-hdf5-${hdf5_version}.tar.gz]; then
        echo "No file found try source"
        curl -LO "http://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-${hdf5_version}/src/CMake-hdf5-${hdf5_version}.tar.gz"       
    fi
    
12
13
14
15
16
17
18
19
20
    tar xzf CMake-hdf5-${hdf5_version}.tar.gz
    cd CMake-hdf5-${hdf5_version}
    #copy options.cmake to adjust settings for compilation
    cp ../HDF5options.cmake .
    #Compile&test (This will take a while)
    ./build-unix.sh
    #Do make install 
    cd build
    make install
21
22
23
    cd ..
else
    cd CMake-hdf5-${hdf5_version}    
24
25
fi
#Store the installation location
26
27
FLEUR_LIBDIR="$PWD/HDF_Group/HDF5/${hdf5_version}/lib $FLEUR_LIBDIR"
FLEUR_INCLUDEDIR="$PWD/HDF_Group/HDF5/${hdf5_version}/include/static $FLEUR_INCLUDEDIR"