Saturday, October 20, 2012

Installing NS-2.31 in Ubuntu 12.04

Follow the below given steps:


  • Download ns-allinnone-2.31 from nasam website
             http://sourceforge.net/projects/nsnam/files/ns-2
  • Create a folder in /home with the name ns2
  •  Extract the tar file in ns2 
  • Open terminal and type cd ns2/ns-allinone-2.31
  •  Install required libraries for ns2 using terminal
            sudo apt-get install build-essential autoconf automake libxmu-dev
  •  Then, sudo ./install 
 -----------------------------------------------------------------------------------------------------------------
 For errors,
  

1.

ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


Solution:
In otcl-1.13/configure, line number 5516

-SHLIB_LD="ld -shared"
+SHLIB_LD="gcc -shared"