Hi, guys today inwards this post I part 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 meshwork connectedness together with besides you lot volition involve to brand few changes inwards NS2.35 files manually.
Step: 1
Open a concluding together with type the next ascendancy i past times one. Wait until the procedure gets consummate together with and then types to a greater extent than or less other command. Also, brand certain cause got an active meshwork 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 involve to Download NS 2.35. (Download Here). After downloading this file Extract it into your beginning directory using the next command. Don't forget to supercede your user name.
| tar xvzf ns-allinone-2.35.tar.gz -C /home/YOUR-USER-NAME-HERE |
|---|
Step: 3
Now opened upwardly ns-allinone-2.35/ns-2.35/linkstate/ls.h
| In business 137, alter the next line void eraseAll() { erase(baseMap::begin(), baseMap::end()); } And supercede amongst the following void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); } |
|---|
Step: 4
Now opened upwardly ns-allinone-2.35/otcl-1.14/Makefile.in
| Change the next line change Change CC= @CC@ to CC=gcc-4.9, equally shown inwards the icon below. |
|---|
Step: 5
Now opened upwardly Navigate to the ns-allinone-2.35 folder:
| Open concluding together with and then type the following cd /ns-allinone-2.35 ./install |
|---|
Step: half dozen (Last step)
| Open concluding together with 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 inwards a higher identify 2 lines foremost from xgraph together with ending amongst unix should come upwardly 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.