NS-2 INSTALLATION
ON UBUNTU:
First
download the file and unzip it
$
wget http://nchc.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.34.tar.gz
$
tar -xzvf ns-allinone-2.34.tar.gz
$ cd
ns-allinone-2.34
Prepare the environment and install it will
take a lot of time.
$
sudo apt-get install build-essential autoconf automake libxmu-dev
$
./install
For
ubuntu 9.10, export the gcc-4.3
$ export CC=gcc-4.3
Set the
environment variable so that our xgraph and nam will work properly
$
gedit ~/.bashrc
# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.34/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.34/lib
X11_LIB=/usr/X11R6/lib
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/your/path/ns-allinone-2.34/bin:/your/path/ns-allinone-2.34/tcl8.4.18/unix:/your/path/ns-allinone-2.34/tk8.4.18/unix
NS=/your/path/ns-allinone-2.34/ns-2.34/
NAM=/your/path/ns-allinone-2.34/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM
$ source ~/.bashrc
For the validation
$
./validate
No comments:
Post a Comment