Last active
April 14, 2016 14:57
-
-
Save basus/6038634ef4b43c265f64ca439beb8bfa to your computer and use it in GitHub Desktop.
A shell script to install dependencies for and build LINC-Switch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell script to install dependencies for LINC-Switch and build it. The commands | |
# are what I used to run build LINC-Switch, but I haven't tested this script | |
# myself. Use at your own peril. | |
# Install system-level dependencies | |
sudo apt-get install gcc wget make autoconf openssl libssl-dev libncurses5 \ | |
curl libncurses5-dev git-core bridge-utils libpcap0.8 libpcap-dev \ | |
libcap2-bin uml-utilities | |
# Use kerl --- a version manager for Erlang OTP --- to build a compatible Erlang | |
# and OTP version | |
curl -O https://raw.githubusercontent.com/yrashk/kerl/master/kerl | |
chmod a+x kerl | |
./kerl build R16B r16b | |
mkdir -p ~/.otp/r16b | |
./kerl install r16b ~/.otp/r16b | |
. ~/.otp/r16b/activate | |
# Get and build LINC-Switch | |
git clone https://github.com/FlowForwarding/LINC-Switch.git | |
cd LINC-Switch | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment