NS3 installation in Linux Mint 17 (64 bit)

This post tells you how to install the ns3 version in Linux Mint 17 (64bit)- Long Term Support till 2019.

The following development libraries are to be installed before trying ns3
$prompt] sudo apt-get update 
$prompt] sudo apt-get install build-essential autoconf automake libxmu-dev
$prompt] sudo apt-get install ia32-libs 
(the above software ia32-libs is needed only when you want to run the 32 bit applications inside a 64bit OS)

Now download the ns3 software from the website http://www.nsnam.org
I downloaded the version 3.20 (ns-allinone-3.20.tar.bz2).

Please do understand that ns2 is different from ns3 and they are not having any link between them (however, some network models were used in ns3 were adopted from ns2).
Also ns3 will run using the main() of C++ and also it has python bindings.

Here is the installation steps of ns3
1. copy the ns-allinone-3.20.tar.bz2 in the home directory(Ex: /home/pradeepkumar)
2. Set the following path information (type these commands one by one in the terminal or copy these lines in the /home/pradeepkumar/.profile)
export BAKE_HOME=`pwd`/bake
3. Open the terminal and issue this command one by one
$prompt] tar jxvf ns-allinone-3.20.tar.gz
$prompt] cd ns-allinone-3.20/
$prompt] cd bake
$prompt] ./bake.py configure -e ns-3.20
$prompt] ./bake check 
(This step will tell you the extra software that needs  to be installed)
$prompt] ./bake download (download the software)
$prompt] sudo apt-get install python-pygoocanvas python-pygraphviz python-dev qt4-default p7zip-full bzr cmake mercurial git cvs 
See the screenshot after the command ./bake.py check

bake.py check

see the screenshot after the command ./bake.py download
bake.py download
The above command will install the optional files that may need to run ns3 completely. And here is the complete build of ns3
$prompt] ./build.py --enable-examples --enable-tests
See the screenshot below for information
ns3 installation
T S Pradeep Kumar

Popular posts from this blog

AWK Scripts for NS2 to process data from Trace Files


nam installation - Segmentation Fault (Solved)