Saturday, 22 March 2014

Installing ns3 in Ubuntu 13.10(Saucy Salamander) (Remove build failed error)

If you are following ns3 installation in Ubuntu 13.10 from http://www.nsnam.org/wiki/Installation you might end up in error while building.These are the steps to avoid error while building

Install these packages for minimal requirements
   sudo apt-get install gcc g++ python
   sudo apt-get install gcc g++ python python-dev 
   sudo apt-get install mercurial
   sudo apt-get install bzr 
   sudo apt-get install gdb valgrind 
   sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
   sudo apt-get install flex bison libfl-dev
   sudo apt-get install gcc-4.8 g++-4.8 (please note gcc version is not 3.4 it is 4.8) 
   sudo apt-get install tcpdump
   sudo apt-get install sqlite sqlite3 libsqlite3-dev 
   sudo apt-get install libxml2 libxml2-dev 
   sudo apt-get install libgtk2.0-0 libgtk2.0-dev
   sudo apt-get install vtun lxc
   sudo apt-get install uncrustify
   sudo apt-get install doxygen graphviz imagemagick
   sudo apt-get install texlive texlive-extra-utils texlive-latex-extra
   sudo apt-get install python-sphinx dia 
   sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev 
   sudo apt-get install libboost-signals-dev libboost-filesystem-dev 
   sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev
   sudo apt-get install gcc-multilib 

Downloading NS-3(ns-3 version is 3.19 not 3.13)
   cd  
   mkdir ns3
   cd ns3
   wget http://www.nsnam.org/release/ns-allinone-3.19.tar.bz2
   tar xjf ns-allinone-3.19.tar.bz2
   cd ns-allinone-3.19/
   ls
 
Then you can find build.py along with other files.Then run 
 
   ./build.py --enable-examples --enable-tests
 It is done inorder to build the examples in ns-3.If the build is successful then it will give output "Build finished successfully" 
 

No comments:

Post a Comment