Skip to content
README.md 863 B
Newer Older
Valerio Pastore's avatar
Valerio Pastore committed
### Prerequisites
Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
$ yum install -y git cmake3 boost-devel librdkafka-devel openssl-devel redis hiredis-devel json-devel devtoolset-12 yaml-cpp-devel mysql-community-server mysql-connector-c++-devel
$ echo 'export BIAS_PREFIX=$HOME/BIAS' >> ~/.bashrc
$ echo 'export PATH="/opt/rh/devtoolset-12/root/usr/bin:$PATH"' >> ~/.bashrc
	or use $scl enable devtoolset-12 'bash'
$ source $HOME/.bashrc
```
### Clone and download submodules
```
$ git clone https://www.ict.inaf.it/gitlab/bias/daqs/astri-daq.git
$ cd astri-daq
$ git submodule update --recursive --init
Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
### Prepare BIAS db
```
Execute 'createBiasDB.sql' script
$ mysql -u root -p
	source ./createBiasDB.sql;
Valerio Pastore's avatar
Valerio Pastore committed

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
$ cmake3 -DCMAKE_INSTALL_PREFIX=$BIAS_PREFIX ..
$ make all
$ make install
Valerio Pastore's avatar
Valerio Pastore committed
```

### RUN THE RECEIVER
```
Valerio Pastore's avatar
Valerio Pastore committed
$ cd $BIAS_PREFIX/bin
$ ./AstriDAQ.lnx
Valerio Pastore's avatar
Valerio Pastore committed
```