Skip to content
README.md 1.18 KiB
Newer Older
Valerio Pastore's avatar
Valerio Pastore committed
### INSTALL DEPENDENCIES
```
Install system packages:
   $ su
   # yum install epel-release
   # yum install cmake3
   # yum install centos-release-scl
   # yum install devtoolset-11
Valerio Pastore's avatar
Valerio Pastore committed
   # yum install librdkafka-devel
   # yum install boost-devel
Valerio Pastore's avatar
Valerio Pastore committed
   # yum install openssl-devel
Valerio Pastore's avatar
Valerio Pastore committed

Load env vars
    $ echo -e '# Load Devtoolset-11 \nPATH="/opt/rh/devtoolset-11/root/usr/bin"${PATH:+:$PATH}' >> ~/.bashrc
    $ echo 'export BIAS_PREFIX=$HOME/BIAS' >> ~/.bashrc 
    $ source $HOME/.bashrc
```

### CLONE THE REPOSITORY
```
Valerio Pastore's avatar
Valerio Pastore committed
    $ cd $HOME
    $ git clone https://www.ict.inaf.it/gitlab/bias/daqs/astri-daq.git
Valerio Pastore's avatar
Valerio Pastore committed
and Download submodules
Valerio Pastore's avatar
Valerio Pastore committed
    $ cd astri-daq
    $ git submodule update --init --recursive
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
   $ cmake3 -DCMAKE_INSTALL_PREFIX=$BIAS_PREFIX ..
Valerio Pastore's avatar
Valerio Pastore committed
   $ make all
   $ make install
Valerio Pastore's avatar
Valerio Pastore committed
   $ mkdir $BIAS_PREFIX/ArchiveRAW
Valerio Pastore's avatar
Valerio Pastore committed
```

### RUN THE RECEIVER
```
ASTRI_DAQ example:

cd $BIAS_PREFIX/bin
Valerio Pastore's avatar
Valerio Pastore committed
./AstriDAQ.lnx --protocol tcp --ip 127.0.0.1 --port 9003 --provider kafka --packet AstriGeneric.txt
Valerio Pastore's avatar
Valerio Pastore committed
	// .AstriDAQ.lnx --help for help...
```

### RUN THE SENDER
```
ASTRI_DAQ example:

./Sender.lnx --protocol tcp --ip 127.0.0.1 --port 9003 --source "RAW FILE PATH"
Valerio Pastore's avatar
Valerio Pastore committed

Valerio Pastore's avatar
Valerio Pastore committed
```