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 |
|---|
| 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 |
|---|
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 |
|---|
Step: six (Last step)
| Open final too and then type the following gedit .bashrc |
|---|
# 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 |
|---|
ns
if % sign appears agency the installation has been successful.
0 Response to "Install Network Simulator 2 (Ns2.35) Inwards Ubuntu 16.04 Stride Yesteryear Stride"
Post a Comment