-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·28 lines (26 loc) · 887 Bytes
/
setup.sh
File metadata and controls
executable file
·28 lines (26 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
sudo apt update -y
sudo apt upgrade -y
sudo apt-get install -y build-essential wget git pkg-config cmake python3 python3-dev libssl-dev libmodbus-dev
mkdir ~/temp
cd ~/temp
wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4.tar.gz
tar -xf cmake-3.18.4.tar.gz
cd cmake-3.18.4 && cmake . && make && sudo make install
cd ~/temp
wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
tar -xf boost_1_76_0.tar.gz
cd boost_1_76_0
./bootstrap.sh --with-python=/usr/bin/python3
sudo ./b2
sudo ./b2 install
sudo ./b2 --with-filesystem install
sudo ./b2 --with-python install
cd ~/temp
wget https://dlcdn.apache.org//xerces/c/3/sources/xerces-c-3.2.4.tar.gz
tar -xf xerces-c-3.2.4.tar.gz
cd xerces-c-3.2.4 && ./configure --prefix=/usr && make && sudo make install
cd
rm -rf ~/temp
sudo apt update -y
sudo apt upgrade -y