Paper

Thursday, March 25, 2010

Install NS2-AllInOne-2.33 on Ubuntu 8.04

This is an example of the NS2-AllInOne-2.33 installation.

Suppose that there is "ns-allinone-2.33.tar.gz" in current directory (e.g. "~/" for me is "/home/alien").
All steps are done in Terminal, so open a terminal in Accessories/Terminal.


To extract the file:
tar xvfz ./ns-allinone-2.33.tar.gz

Go into extracted directory:
cd ns-allinone-2.33

Download required packages:
sudo apt-get install build-essential autoconf automake libxmu-dev

Start installation:
./install

Set environment parameter:
gedit ~/.bashrc
Then at the last line, append the following text with changing "/your/path" to the directory that contains "ns-allinone-2.33". (e.g. "/home/alien/" )

# LD_LIBRARY_PATH
OTCL_LIB=/home/alien/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/alien/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=/home/alien/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

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

GUD LUCK..

Reference : http://suchaxplore.blogspot.com

No comments:

Post a Comment