2024-04-11 11:23:49 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd /opt
|
2024-04-11 12:03:02 +02:00
|
|
|
source environment.sh
|
2024-04-11 11:23:49 +02:00
|
|
|
|
|
|
|
apt install -y wget libhdf5-dev make
|
|
|
|
[ -z $CC ] && apt install -y gcc
|
|
|
|
[ -z $FC ] && apt install -y gfortran
|
|
|
|
|
|
|
|
|
|
|
|
wget https://github.com/TREX-CoE/trexio/releases/download/v2.4.2/trexio-2.4.2.tar.gz
|
|
|
|
tar -zxvf trexio-2.4.2.tar.gz
|
|
|
|
cd trexio-2.4.2
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make -j 8
|
|
|
|
make -j 8 check
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
rm -rf trexio-2.4.2 trexio-2.4.2.tar.gz
|
|
|
|
|
|
|
|
|
2024-04-11 12:03:02 +02:00
|
|
|
apt remove -y wget gcc gfortran
|