This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
install_alone.sh
executable file
·62 lines (50 loc) · 1.71 KB
/
install_alone.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
#! /bin/bash
_pwd=$(pwd)
# install bcc and dependencies
echo "installing bcc dependencies"
sudo apt-get install -y bison build-essential cmake flex git libedit-dev \
libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev
# echo installing bcc
cd $DATA_DIR
rm -rf bcc # be sure that there is not al already git clone of bcc
git clone https://github.com/iovisor/bcc.git
cd bcc
# bcc master compatibility with gobpf is broken, use an old version while
# the issue is solved
git checkout b79b589a2dc663431e3a9489178c1ada6f12e8b7
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j
sudo make install
echo "installing go"
curl -O https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar -xvf go1.6.2.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo mv go /usr/local
sudo rm -f /usr/bin/go
sudo ln -s /usr/local/go/bin/go /usr/bin
export GOPATH=$HOME/go
# Hover
echo "installing hover dependencies"
go get github.com/vishvananda/netns
go get github.com/willf/bitset
go get github.com/gorilla/mux
# to pull customized fork of netlink
go get github.com/vishvananda/netlink
cd $HOME/go/src/github.com/vishvananda/netlink
git remote add drzaeus77 https://github.com/drzaeus77/netlink
git fetch drzaeus77
git reset --hard drzaeus77/master
go get github.com/iovisor/gobpf
go get github.com/songgao/water
echo "installing hover"
go get -d github.com/iovisor/iomodules/hover
# use custom version of hover
cd $GOPATH/src/github.com/iovisor/iomodules
git remote add mvbpolito https://github.com/mvbpolito/iomodules
git fetch mvbpolito
git reset --hard mvbpolito/master
go install github.com/iovisor/iomodules/hover/hoverd
echo "installing iovisor ovn"
go get github.com/iovisor/iovisor-ovn/iovisorovnd
cd $_pwd