Install Network Simulator 2 (Ns2.35) Inwards Ubuntu 16.04 Stride Yesteryear Stride


Hi, guys today inwards this post I percentage the installation method of NS2.35 inwards ubuntu 16.04 footstep past times step.During Installation Network Simulator 2 you lot volition require an active cyberspace connexion too likewise you lot volition postulate to brand few changes inwards NS2.35 files manually.

Step: 1

Open a final too type the next dominance 1 past times one. Wait until the procedure gets consummate too and then types around other command. Also, brand certain create got an active cyberspace connection.
sudo apt-get update
sudo apt-get install build-essential autoconf automake libxmu-dev
At the fourth dimension of writing this tutorial, gcc-4.9 was the latest version.
sudo apt-get install gcc-4.9

Step: 2

You volition postulate to Download NS 2.35. (Download Here). After downloading this file Extract it into your origin directory using the next command. Don't forget to supersede your user name.
tar xvzf ns-allinone-2.35.tar.gz -C /home/YOUR-USER-NAME-HERE
or you lot tin exercise this directly. Just Right click on the file too click on Extract here.

Step: 3

Now opened upwards  ns-allinone-2.35/ns-2.35/linkstate/ls.h
In trouble 137, modify the next line

void eraseAll() { erase(baseMap::begin(), baseMap::end()); }

And supersede amongst the following

void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
Step: 4

Now opened upwards  ns-allinone-2.35/otcl-1.14/Makefile.in
Change the next line

change Change CC= @CC@ to CC=gcc-4.9, every bit shown inwards the picture below.
Step: 5

Now opened upwards  Navigate to the ns-allinone-2.35 folder:
Open final too and then type the following
cd /ns-allinone-2.35
./install
That's it. . . Now await for NS2 it volition create got ten to fifteen minutes or perhaps more.

Step: six (Last step)
Open final too and then type the following
gedit .bashrc
And too then Paste the next code at the END merely don't forget to modify your User-Name

# LD_LIBRARY_PATH
OTCL_LIB=/home/
Your-User-Name/ns-allinone-2.35/otcl-1.14
NS2_LIB=/home/
Your-User-Name/ns-allinone-2.35/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/
Your-User-Name/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/
Your-User-Name/ns-allinone-2.35/bin:/home/Your-User-Name/ns-allinone-2.35/tcl8.5.10/unix:/home/Your-User-Name/ns-allinone-2.35/tk8.5.10/unix
#the higher upwards 2 lines outset from xgraph too ending amongst unix should come upwards on the same line
NS=/home/
Your-User-Name/ns-allinone-2.35/ns-2.35/
NAM=/home/
Your-User-Name/ns-allinone-2.35/nam-1.15/
PATH=$PATH:$XGRAPH:$NS:$NAM
Meanwhile, inwards the Terminal, if the installation completes without whatever error, too then closed the terminal, too reopen it too type the next command:
ns
if % sign appears agency the installation has been successful.

Berlangganan update artikel terbaru via email:

0 Response to "Install Network Simulator 2 (Ns2.35) Inwards Ubuntu 16.04 Stride Yesteryear Stride"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel