install_hdf5.sh 756 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
hdf5_version=1.10.2
if [ ! -r CMake-hdf5-${hdf5_version} ]
then
    #Get the file with the code
    curl -LO "http://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-${hdf5_version}/src/CMake-hdf5-${hdf5_version}.tar.gz"
    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
15 16 17
    cd ..
else
    cd CMake-hdf5-${hdf5_version}    
18 19
fi
#Store the installation location
20 21
FLEUR_LIBDIR="$PWD/HDF_Group/HDF5/${hdf5_version}/lib $FLEUR_LIBDIR"
FLEUR_INCLUDEDIR="$PWD/HDF_Group/HDF5/${hdf5_version}/include/static $FLEUR_INCLUDEDIR"