Saturday 27 April 2013

Installation of ns-2.34 in Ubuntu 10.10

The process of installation of ns-2.34 is very similar to installing it in fedora.

Ubuntu doesnot contain the yum installer so you will need apt-get installer to get dependencies.

Run the following command to install all dependencies needed for installation of ns-2.34.

sudo apt-get install xorg-dev g++ xgraph

Fix the error in the linking of Otcl by editing the line 6304 of otcl-1.13/configure so that it reads

SHLIB_LD="gcc -shared"

instead of

SHLIB_LD="ld -shared"


NS2.34 installs smoothly with gcc compiler version 4.3. By default, Ubuntu10.10 ships with gcc-4.4.5. So we use a downgraded compiler version for the installation. This is done as follows :
Edit Makefile.in found at this location ns-allinone-2.34/otcl-1.13/Makefile.in as follows:

Find the line that says:
CC= @CC@
and change it to:
CC= gcc-4.3


And run
./install 

After ns-2.34 is successfully made you will have to give the path in similar way as u did in installation of ns-2 in fedora. You can see that post here to set the exact path. Good Luck  


No comments:

Post a Comment