NS 2 installation in ubuntu 12 or 13 or !4

NS 2 install procedure in ubuntu 12 or 13   each step by step copy and past at terminal  follwing..


1  sudo apt-get update

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

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
                   then, 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

Note: when add path replace your pc username instead of username

Popular posts from this blog

List of Websites to get free e-books

Online IDEs/Interpreters for python programming