From f409ae99eaea8db957e7b5dbbad13252cc673399 Mon Sep 17 00:00:00 2001 From: Matthias Redies Date: Wed, 18 Jul 2018 16:32:54 +0200 Subject: [PATCH] added mirror for libxc, since tddft.org is aweful --- external/libxc/install_libxc.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/external/libxc/install_libxc.sh b/external/libxc/install_libxc.sh index 7c12522d..7c080f57 100644 --- a/external/libxc/install_libxc.sh +++ b/external/libxc/install_libxc.sh @@ -2,7 +2,14 @@ libxc_version=4.2.1 if [ ! -d libxc-${libxc_version} ] then #Get the file with the code - curl -LO "http://www.tddft.org/programs/octopus/download/libxc/${libxc_version}/libxc-${libxc_version}.tar.gz" + curl --connect-timeout 10 -LO "http://www.tddft.org/programs/octopus/download/libxc/${libxc_version}/libxc-${libxc_version}.tar.gz" + + # tddft.org is always offline. Hence a backup: + if [ ! -f libxc-${libxc_version}.tar.gz ]; then + echo "No file found, try mirror" + curl --connect-timeout 10 -LO "https://github.com/MRedies/libxc-mirror/raw/master/libxc-4.2.1.tar.gz" + fi + tar xzf libxc-${libxc_version}.tar.gz cd libxc-${libxc_version} #Compile&test (This will take a while) -- GitLab