-
Notifications
You must be signed in to change notification settings - Fork 6
/
install-centos-dependencies.sh
executable file
·58 lines (51 loc) · 1.44 KB
/
install-centos-dependencies.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
set -eu
distro="$(lsb_release -is)"
release="$(lsb_release -rs)"
here=$(dirname $(readlink -e $0))
release_major=${release%%.*}
common_pkgs='
gcc-c++
devtoolset-7-gcc-c++
git
libpcap-devel
python36-devel
zlib-devel
cpptoml-devel
wget
perl-IPC-Cmd
'
pip_pkgs='
meson
ninja
scikit-build
cmake
'
enable_devtoolset='scl enable devtoolset-7'
if [ "${distro}" = 'CentOS' ]; then
if [ "${release_major}" = '7' ]; then
sudo yum install -y \
https://centos${release_major}.iuscommunity.org/ius-release.rpm \
centos-release-scl
sudo yum update -y
sudo yum install -y ${common_pkgs}
sudo pip3 install --upgrade pip
sudo pip3 install --upgrade ${pip_pkgs}
elif [ "${release_major}" = '6' ]; then
${enable_devtoolset} ${here}/install-centos-dependecies-with-v6.sh
exit 0
else
echo "Unsupported CentOS release ${release}." >&2
exit 2
fi
${enable_devtoolset} ${here}/install-boost.sh
${enable_devtoolset} ${here}/install-cpptoml.sh
${enable_devtoolset} ${here}/install-fuse.sh
${enable_devtoolset} ${here}/install-fusepp.sh
${enable_devtoolset} ${here}/install-json.sh
${enable_devtoolset} ${here}/install-openssl.sh
${enable_devtoolset} ${here}/install-pcap-plus-plus-precompiled.sh
else
echo 'This script is supposed to run on CentOS systems only.' >&2
exit 3
fi