forked from p4lang/behavioral-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_deps.sh
executable file
·46 lines (43 loc) · 948 Bytes
/
install_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
#!/bin/bash
set -e
ubuntu_release=`lsb_release -s -r`
if [[ "${ubuntu_release}" > "18" ]]
then
# This older package libssl1.0-dev enables compiling Thrift 0.9.2
# on Ubuntu 18.04. Package libssl-dev exists, but Thrift 0.9.2
# fails to compile when it is installed.
LIBSSL_DEV="libssl1.0-dev"
else
LIBSSL_DEV="libssl-dev"
fi
sudo apt-get install -y \
automake \
cmake \
libjudy-dev \
libgmp-dev \
libpcap-dev \
libboost-dev \
libboost-test-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libevent-dev \
libtool \
flex \
bison \
pkg-config \
g++ \
$LIBSSL_DEV \
libffi-dev \
python-dev \
python-pip \
wget
tmpdir=`mktemp -d -p .`
cd $tmpdir
bash ../travis/install-thrift.sh
bash ../travis/install-nanomsg.sh
sudo ldconfig
bash ../travis/install-nnpy.sh
cd ..
sudo rm -rf $tmpdir