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
  • 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,


ld: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [] Error 1
otcl-1.13 make failed! Exiting ...
See for problems

In otcl-1.13/configure, line number 5516

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