ns-2 for beginners

NS 2 Installation in Linux

NS 2 install procedure in linux mint 14 or 16    each step by step copy and past at terminal

1 sudo apt-get install build-essential autoconf automake libxmu-dev

2 sudo apt-get update  

3 tar zxvf ns-allinone-2.35.tar.gz    (This is to extract the tar.gz file into a folder)
4 sudo apt-get install gedit

5  cd ns-allinone-2.35
 go to cd /home/ns-allinone-2.35/ns-2.35/linkstate/ls.h
open ls.h file
edit file go to line 137 relpce this below
""
void eraseAll() { this-> erase(baseMap::begin(), baseMap::en
""
6 ./install   
   
7 gedit .bashrc

add path

export PATH=$PATH:/home/username/ns-allinone-2.35/bin:/home/username/ns-allinone-2.35/tcl8.5.10/unix:/home/username/ns-allinone-2.35/tk8.5.10/unix
export LD_LIBRARY_PATH=/home/username/ns-allinone-2.35/otcl-

8 source .bashrc

9 ns
get % it is installed

Comments