Skip to main content


Showing posts from June, 2018

Installation of ns2 in Ubuntu 18.04 - NS2 Tutorial # 2

ns2 installation in Ubuntu 18.04 Unlike earlier version of ubuntu, the 18,04 version does not support the direct installation of ns2, because of the latest C/C++ compiler (7.x), but the latest C/C++ compiler supported by ns2 is gcc-4.8. So this post and video tells you about the installation of gcc-4.8 version, then ns2 and then configuration. Here are the steps, Please follow the video given below for more information. $] tar zxvf ns-allinone-2.35.tar.gz $] sudo apt install gcc-4.8 g++-4.8 if you have installed ubuntu just now, you can try these commands also in the beginning $] sudo apt update $] sudo apt install build-essential autoconf automake libxmu-dev $] cd ns-allinone-2.35/ns-2.35 $] gedit $] gedit linkstate/ls.h line number 137, change erase to this->erase $] cd .. $] ./install export PATH=$PATH:/home/pradeepkumar/ns-allinone-2.35/bin:/home/pradeepkumar/ns-allinone-2.35/tcl8.5.10/unix:/home/pradeepkumar/ns-allinone-2.35/tk8.5.10/unix ex