Skip to content
README.md 759 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
$ 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
Valerio Pastore's avatar
Valerio Pastore committed
$ echo 'export BIAS_PREFIX=$HOME/BIAS' >> ~/.bashrc
$ source $HOME/.bashrc
```
### Clone and download submodules
```
Valerio Pastore's avatar
Valerio Pastore committed
$ 'cd to the project dir'
$ git submodule update --init --recursive 

Valerio Pastore's avatar
Valerio Pastore committed
```
Valerio Pastore's avatar
Valerio Pastore committed
### Prepare BIAS db
```
Execute 'createBiasDB.sql' script
Valerio Pastore's avatar
Valerio Pastore committed
$ mysql -u bias -p
Valerio Pastore's avatar
Valerio Pastore committed
	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
Valerio Pastore's avatar
Valerio Pastore committed
$ cmake -DCMAKE_INSTALL_PREFIX=$BIAS_PREFIX ..
Valerio Pastore's avatar
Valerio Pastore committed
$ make all
$ make install
Valerio Pastore's avatar
Valerio Pastore committed
```

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