Skip to content
README.md 1.11 KiB
Newer Older
Valerio Pastore's avatar
Valerio Pastore committed
### INSTALLATION INSTRUCTIONS FOR ROCKY LINUX 8

# INSTALL DEPENDENCIES
```
   $ dnf -y install epel-release
Valerio Pastore's avatar
Valerio Pastore committed
   $ dnf -y install gcc cfitsio-devel cmake git json-devel
Valerio Pastore's avatar
Valerio Pastore committed
```

# CLONE AND UPDATE SUBMODULES
Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
   $ git clone https://www.ict.inaf.it/gitlab/bias/fits-preprocessor.git
Valerio Pastore's avatar
Valerio Pastore committed
   $ git submodule update --recursive --init
```
Valerio Pastore's avatar
Valerio Pastore committed
# PREPARE THE ENVIRONMENT
```
Valerio Pastore's avatar
Valerio Pastore committed
   $ gcc --version
   if your gcc version >= 11 skip to the next section, otherwise run:
      $ dnf install gcc-toolset-12
      $ scl enable gcc-toolset-12 bash  
         # the previous command is mandatory before the install step
Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
# BUILD SOFA LIBRARY
Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
   $ cd ./deps/sofa/20231011/c/src/
   $ make
   $ cd ../../../../../
Valerio Pastore's avatar
Valerio Pastore committed
```

Valerio Pastore's avatar
Valerio Pastore committed
# INSTALL
Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
   $ mkdir build
   $ cd build
Valerio Pastore's avatar
Valerio Pastore committed
   $ cmake -DCMAKE_INSTALL_PREFIX="YOUR_INSTALLATION_DIR" ..
Valerio Pastore's avatar
Valerio Pastore committed
   $ make all
   $ make install
```
Valerio Pastore's avatar
Valerio Pastore committed
# RUN
Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
   $ cd "YOUR_INSTALLATION_DIR"/bin
Valerio Pastore's avatar
Valerio Pastore committed
   $ ./FitsPreprocessor.lnx <source_path> <destination_path>
        # "<source_path>" is the path containing the .raw files you want to process, or the .raw file itself
Valerio Pastore's avatar
Valerio Pastore committed
        # "<destination_path>" is the path where fits files will be written
Valerio Pastore's avatar
Valerio Pastore committed
```