I have seen that there isn't any tutorial where it says the way to install the latest version of Network Simulator [NS2.34] in ubuntu 9.10.
step1: Untar the downloaded content.
You can download the latest version of Network Simulator software at
http://www.isi.edu/nsnam/ns/ns-build.html
Note: Unless you are experienced with the NS2 already, I would recommend you to download the 'allinone' NS2 package.
step2: Ensure that you have all the libraries installed.
$sudo apt-get install autoconf automake libxmu-dev
step3:
$sudo apt-get install build-essential
step4: navigate to the ns2 directory
$cd ns-allinone-2.34/
step5: Finally install
./install
Frequent errors that you might encounter:
make: *** [libotcl.so] Error 127 otcl-1.13 make failed!
Follow the below steps:
$gedit otcl-1.13/Makefile.in
#edit line 7
From :
CC= @CC@
to :
CC= gcc-4.3
and/or
$CC=gcc-4.3 CXX=g++-4.3 ./install
step6: validate your install
./validate
Step7: There you go! NS2 is ready to be worked on

No comments:
Post a Comment