Ns2 Installation steps in ubuntu 12.04 / 13.10 / 14.04 (package NS2.35)
1. Firstly download the tar file of ns2.35 NS2 package (ns-allinone-2.35) 2. Copy that tar file in home path 3. Open terminal by ctrl+t 4. Type command on that is... sudo apt-get update 5. Then password your system... 6. Then type coomand... sudo apt-get install build-essential autoconf automake libxmu-dev. 7.Then type that command for extract the tar file... tar zxvf ns-allinone-2.35. tar.gz other wise you extract manually its your choice. 8.Then type on terminal ..... cd ns-allinone-2.35 9.Then type the command ... gedit ns-2.35/linkstate/ls.h (for changing the line 137...) is it void eraseAll() { erase(baseMap::begin(), baseMap::end()); } its change by....that line void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); } then paste that line on that program file linkstate -> manually also do that 10. Then type the command ./install on terminal. 11. Afte...