Skip to content

Instantly share code, notes, and snippets.

@Surendrajat
Last active October 17, 2017 10:15
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 Surendrajat/144bc3ee87fdfb88f5f128b9ce03232a to your computer and use it in GitHub Desktop.
Save Surendrajat/144bc3ee87fdfb88f5f128b9ce03232a to your computer and use it in GitHub Desktop.
To install ns3....
1.
sudo apt-get install aptitude
2.
sudo aptitude install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml
3.
wget https://www.nsnam.org/release/ns-allinone-3.27.tar.bz2
4.
tar -xvf ns-allinone-3.27.tar.bz2
5.
cd ns-allinone-3.27
6. execute each command.....
./build.py
cd ns-3.26
CXXFLAGS="-O3" ./waf configure
./waf -d optimized configure; ./waf
./waf --enable-examples configure
./waf --enable-tests configure
./test.py
Done!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment