forked from p4lang/p4factory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_deps.sh
executable file
·65 lines (52 loc) · 1.67 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# installation script for ubuntu 14.04
trap 'exit' ERR
sudo apt-get update
sudo apt-get install -y automake bison doxygen ethtool flex g++ git \
ipython ipython-notebook libany-moose-perl libboost-dev libboost-filesystem-dev \
libboost-program-options-dev libboost-system-dev libboost-test-dev libbsd-dev \
libedit-dev libevent-dev libfreetype6-dev libhiredis-dev libjudy-dev libpcap-dev \
libpng-dev libssl-dev libtool libyaml-0-2 libbz2-dev mininet openssl pkg-config python-dev \
python-dpkt python-jsonpickle python-imaging-tk python-matplotlib python-nose python-numpy \
python-pandas python-pip python-pygraph python-pygraphviz python-scipy \
python-setuptools python-sympy python-yaml redis-server thrift-compiler \
wireshark
sudo pip install --upgrade thrift
sudo pip install tenjin
# build thrift from sources
mkdir install_tmp
cd install_tmp
wget -c http://archive.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz
tar zxvf thrift-0.9.2.tar.gz
cd thrift-0.9.2
./configure
cd test/cpp ; ln -s . .libs ; cd ../..
make -j4
sudo make install
sudo ldconfig
cd ..
# Install libnanomsg
wget -c http://download.nanomsg.org/nanomsg-0.5-beta.tar.gz
tar zxvf nanomsg-0.5-beta.tar.gz
cd nanomsg-0.5-beta
./configure
make -j4
sudo make install
sudo ldconfig
cd ..
# Install high level interpreter and scapy
git clone https://github.com/p4lang/p4-hlir.git
cd p4-hlir
sudo python setup.py install
cd ..
# Install P4 dependency graph generator
git clone https://github.com/p4lang/p4c-graphs.git
cd p4c-graphs
sudo python setup.py install
cd ..
sudo apt-get remove python-scapy
git clone https://github.com/p4lang/scapy-vxlan.git
cd scapy-vxlan
sudo python setup.py install
cd ..
cd ..
# rm -rf install_tmp