Step 1:

Download ns-allinone-2.34 package from NS2 official site. At present the latest version was 2.35    (http://www.isi.edu/nsnam/dist/ns-src-2.xx.tar.gz)

Step 2:

Copy the ns-allinone-2.34.tar.gz file in your home folder(/home/raj/Desktop in my case).

I have copied it on my desktop.

Extract the contents of the folder using command.

tar -xzvf ns-allinone-2.34.tar.gz                (it will create a file name ns-allinone-2.34)

Step 3:

Open terminal (ctrl+alt+t) and change directory to the ns folder.

$ cd /home/raj/Desktop/ns-allinone-2.34

Step 4:

Install the dependencies

$ sudo apt-get install build-essential autoconf automake libxmu-dev

$ sudo apt-get install gcc-4.4 g++-4.4

Edit Makefile.in which is found at this location ns-allinone-2.34/otcl-1.14/Makefile.in

as follows:

the line number 270 that says:
“CC= @CC@” and make it “CC=@CC@ -V 4.4″                       note : it is caps V not v.

Step 5:

Edit the file ns-2.34/tools/ranvar.cc and change the line 219 :

return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u…

View original post 177 more words


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s