Saturday, February 13, 2010

Installation problem in NS2.33 in Ubuntu

Hey there!!!!!

I was in trouble for past 3 days trying to install ma UM OLSR patch for ubuntu. But i couldnt. I was geting a error like
----------------------------------------
“make: *** [tk3d.o] Error 1 tk8.4.14 make failed!” error.
----------------------------------------

I got to know this is because the OS is lack of developer tools like compilers and stuffs like GCC 4.3 and so on. Hence we gotta install it first.

This can be done by giving the following command in console!!!!
----------------------------------------
sudo apt-get install build-essential

sudo apt-get install autoconf automake libxmu-dev
----------------------------------------

The second command is to install the necessary make files for the ns2 installer.

and all done. now you can follow the conventional installation process of NS2 which goes like.......

cd ns-allinone-2.33
./install


Now u gotta edit the .bashrc file and set the path accordingly....
This can be done by the following command.....

sudo gedit ~/.bashrc

and now give the following info in the bashrc file.....

#environment values for NS2/NAM
# LD_LIBRARY_PATH
OTCL_LIB=/your directory/ns-allinone-2.33/otcl-1.13
NS2_LIB=/your directory/ns-allinone-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/your directory/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/your directory/ns-allinone-2.33/bin:/your directory/ns-allinone-2.33/tcl8.4.18/unix:/your directory/ns-allinone-2.33/tk8.4.18/unix
NS=/your directory/ns-allinone-2.33/ns-2.33/
NAM=/your directory/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM


in the above make changes to your directory.


then give the following commands in console

cd ns-2.33
./validate


All done friends.......

Ns2 has been installed and ready to use.


u can test by typing "ns" in console ( Pray for a while)

is % comes success.... else ther is a error in the way u installed.


I got a % ..... i did made a prayer........ lol


Good Luck guys!!!!!!




No comments:

Post a Comment

Counter

blogger analytics