Create go4 under rh7

2025-01-10 10:47:47 +01:00
parent c14978aeaf
commit b3e6ea5abb

92
go4-under-rh7.md Normal file

@ -0,0 +1,92 @@
# instructions for RH7 (deprecated)
## Setup (w/ root 6.26)
- Download and unpack the go4 distribution:
https://web-docs.gsi.de/~go4/download/go4-6.2.0.tar.gz
- Create a `build` folder and `cd` to it.
```bash
module use unstable # for Qt and hdf5_serial
module load Qt gcc/10.3.0 root/6.26.02 hdf5_serial/1.10.7 cmake/3.20.5 gsl/2.7
```
- To get `HDF5_ROOT` env var considered, change policy CMP0074 to NEW:
```bash
cmake -DCMAKE_POLICY_DEFAULT_CMP0074=NEW -Dhdf5=ON ../go4-6.2.0/
make -j
```
- Once you reach an error regarding libtiff:
```bash
cp /afs/psi.ch/sys/psi.x86_64_slp6/Compiler/root/6.24.06/gcc/10.3.0/lib/libtiff* ./lib/
make -j
```
## Setup (w/ root 6.24)
- Download and unpack the go4 distribution:
https://web-docs.gsi.de/~go4/download/go4-6.2.0.tar.gz
- Create a `build` folder and `cd` to it.
- Load dependencies via pmodules:
```bash
module use unstable # for Qt
module load Qt gcc/10.3.0 root/6.24.06 hdf5_serial/1.10.7 cmake/3.20.5
```
- To get `HDF5_ROOT` env var considered, change policy CMP0074 to NEW:
```bash
cmake -DCMAKE_POLICY_DEFAULT_CMP0074=NEW -Dhdf5=ON ../go4-6.2.0/
make -j
```
- Once you reach an error regarding libtiff:
```bash
cd qt4 && $(cat CMakeFiles/go4.dir/link.txt) -ltiff && cd ..
make -j
```
### Just for debugging
The ignored `HDF5_ROOT` can also be solved by editing `go4-6.2.0/CMakeLists.txt`. Add:
```
14 cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
15 cmake_policy(VERSION 3.12)
```
In case, `HDF5_ROOT` is not defined:
```bash
HDF5_ROOT=$HDF5_PREFIX cmake -Dhdf5=ON ../go4-6.2.0/
```
---
Further details regarding the libtiff error:
```bash
VERBOSE=1 make -j
```
Last line misses `-ltiff`. Find last line, `cd` into right folder (`qt4`) and run line again adding `-ltiff` at the end.
---
In case we need the parallel hdf5 lib:
```bash
module load Qt gcc/10.3.0 openmpi/4.0.5 root/6.24.06 hdf5/1.10.7 cmake/3.20.5
```