Skip to content
Snippets Groups Projects
Commit a2a9ea20 authored by Valerio Pastore's avatar Valerio Pastore
Browse files

update readme

parent f8085ecc
No related branches found
No related tags found
No related merge requests found
### Prerequisites
```
$ 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
$ dnf localinstall https://dev.mysql.com/get/mysql80-community-release-el9-5.noarch.rpm
$ dnf install -y gcc g++ git cmake boost-devel librdkafka-devel openssl-devel redis hiredis-devel json-devel 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
$ 'cd to the project dir'
$ git submodule update --init --recursive
```
### Prepare BIAS db
```
Execute 'createBiasDB.sql' script
$ mysql -u root -p
$ mysql -u bias -p
source ./createBiasDB.sql;
```
......@@ -23,12 +22,12 @@ $ mysql -u root -p
```
$ mkdir build
$ cd build
$ cmake3 -DCMAKE_INSTALL_PREFIX=$BIAS_PREFIX ..
$ cmake -DCMAKE_INSTALL_PREFIX=$BIAS_PREFIX ..
$ make all
$ make install
```
### RUN THE RECEIVER
### RUN
```
$ cd $BIAS_PREFIX/bin
$ ./AstriDAQ.lnx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment