forked from p4lang/behavioral-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_deps.sh
44 lines (41 loc) · 811 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
#!/bin/sh
set -e
# Check whether running Ubuntu >= 18.04
if test `lsb_release -rs` = '18.04';
then
echo "Detected Ubuntu 18.04, using libssl1.0-dev"
LIBSSL="libssl1.0-dev"
else
LIBSSL="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 \
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