Created
April 9, 2019 09:43
-
-
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
This file contains 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
#!/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