-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall-build-deps.sh
executable file
·75 lines (68 loc) · 1.69 KB
/
install-build-deps.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
#
# Install development build dependencies for different Linux distributions
#
set -e
[ -f /etc/os-release ] || (echo "/etc/os-release doesn't exist."; exit 1)
. /etc/os-release
SUDO_CMD=""
if [ $(id -u) -ne 0 ]; then
SUDO_CMD="sudo "
fi
case "$ID-$VERSION_ID" in
ubuntu-16.04)
# Ubuntu seems to have a rather strange and inconsistent naming for the
# ZeroMQ packages ...
$SUDO_CMD apt-get install -y \
check \
doxygen \
python3 python3-venv python3-pip \
tox \
lcov valgrind \
libzmq5 \
libzmq3-dev \
libzmq5-dbg \
libczmq-dev \
libczmq-dbg \
xsltproc \
libelf1 libelf-dev zlib1g zlib1g-dev \
lsb-release
$SUDO_CMD pip3 install -r src/python/dev-requirements.txt
;;
ubuntu-18.04)
# Ubuntu seems to have a rather strange and inconsistent naming for the
# ZeroMQ packages ...
$SUDO_CMD apt-get install -y \
check \
doxygen \
python3 python3-venv python3-pip \
tox \
lcov valgrind \
libzmq5 \
libzmq3-dev \
libczmq4 \
libczmq-dev \
xsltproc \
libelf1 libelf-dev zlib1g zlib1g-dev \
lsb-release
$SUDO_CMD pip3 install -r src/python/dev-requirements.txt
;;
*suse*)
$SUDO_CMD zypper install \
libcheck0 check-devel libcheck0-debuginfo \
doxygen \
python3 python3-pip \
python3-tox \
lcov valgrind \
zeromq-devel zeromq \
czmq-devel czmq-debuginfo \
libxslt-tools \
libelf1 libelf-devel \
lsb-release
$SUDO_CMD pip3 install -r src/python/dev-requirements.txt
;;
*)
echo Unknown distribution. Please extend this script!
exit 1
;;
esac