NS 2 install procedure in ubuntu 18.04 each step by step copy and past at terminal follwing..
download network simulator 2 (ns 2.35) click here and copy file from downloads and paste to home directory
step 1 copy below line and past at terminal (ubutu/linux mint) this is for Linux update
sudo apt install gcc-4.8 g++-4.8
step 2 copy below line and past at terminal (ubutu/linux mint) this is for library packages installation and related ns 2
sudo apt-get install build-essential autoconf automake libxmu-dev
step 3 tar zxvf ns-allinone-2.35.tar.gz.part (This is to extract the tar.gz file into a folder)
you can extract this file my manual rar file
step 4 sudo apt-get install gedit (optional if gedit not installed install gedit using this command )
go to terminal and
step 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 cd
goto ns-allinone-2.35 (by using cd ns-allinone-2.35)
./install
7. go to home director for using cd command (just type " cd " command at terminal )
8 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-
9 source .bashrc
10 ns
get % it is installed
Note: when add path replace your pc username instead of username
download network simulator 2 (ns 2.35) click here and copy file from downloads and paste to home directory
step 1 copy below line and past at terminal (ubutu/linux mint) this is for Linux update
sudo apt-get update
update your C file using this comandsudo apt install gcc-4.8 g++-4.8
step 2 copy below line and past at terminal (ubutu/linux mint) this is for library packages installation and related ns 2
sudo apt-get install build-essential autoconf automake libxmu-dev
step 3 tar zxvf ns-allinone-2.35.tar.gz.part (This is to extract the tar.gz file into a folder)
you can extract this file my manual rar file
step 4 sudo apt-get install gedit (optional if gedit not installed install gedit using this command )
go to terminal and
step 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 cd
goto ns-allinone-2.35 (by using cd ns-allinone-2.35)
./install
7. go to home director for using cd command (just type " cd " command at terminal )
8 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-
9 source .bashrc
10 ns
get % it is installed
Note: when add path replace your pc username instead of username
essay step to install thanking you sir
ReplyDeletegood
ReplyDeletethanking you
its very good and i happy to they are help me for installation
ReplyDelete