Skip to content

Instantly share code, notes, and snippets.

@basus
Last active April 14, 2016 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basus/6038634ef4b43c265f64ca439beb8bfa to your computer and use it in GitHub Desktop.
Save basus/6038634ef4b43c265f64ca439beb8bfa to your computer and use it in GitHub Desktop.
A shell script to install dependencies for and build LINC-Switch
# 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