Skip to content

Instantly share code, notes, and snippets.

@arslan-ahmad
Created April 9, 2019 09:43
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 arslan-ahmad/da5eaa3637217cc6779456ca2408e2ab to your computer and use it in GitHub Desktop.
Save arslan-ahmad/da5eaa3637217cc6779456ca2408e2ab to your computer and use it in GitHub Desktop.
Bash file for the integrated installation of the ns-3 with Ryu controller
#!/bin/bash
echo "Installing dependencies"
sudo apt-get install autoconf libtool build-essential pkg-config libevent-dev libssl-dev -y
sudo apt-get install libboost-dev libpcap-dev libxerces-c2-dev libpcre3-dev libdb-dev libexpat-dev flex bison cmake
sudo apt-get install libreadline-dev texinfo -y
pip install Cython -y
sudo apt-get install openjdk-7-jdk libX11-dev libxext-dev libxtst-dev libxt-dev libcups2-dev libasound2-dev ccache -y
echo "Get Bake"
hg clone http://code.nsnam.org/bake bake
export BAKE_HOME=`pwd`/bake
export PATH=$PATH:$BAKE_HOME
export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
echo "GET DCE-PYTHON-SDN"
git clone https://github.com/jaredivey/dce-python-sdn
cd dce-python-sdn
# Bake libfluid with elevated privileges
mv bakeconf-sdn.xml bakeconf.xml
bake.py configure -c bakeconf.xml -e libfluid
bake.py download
sudo ../bake/bake.py build
rmdir build
rm bakefile.xml
rm bakeSetEnv.sh
# Bake dce-python-sdn
bake.py configure -c bakeconf.xml -e dce-sdn-1.7
bake.py download
bake.py build -vvv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment