How to Install NS All In One 2.35 in Ubuntu 12.04
As Ubuntus new version 12.04 LTS needs following packages before any
further installation,otherwise it will not work with it. Please follow
the following steps:
1. Download & install some packages from repository if needed (Now its optional)
$ sudo apt-get update
$ sudo apt-get install build-essential autoconf automake libxmu-dev
2. Download NS All In One 2.35
URL: http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download
$ tar -zxvf ns-allinone-2.35.tar.gz
$ cd ns-allinone-2.35
$ ./install
3. Set environment variables
$ gedit ~/.bashrc
Add the following lines to the end of the file. Remember replace “/your/path” by the folder where you have stored extracted the ns-2 file (For example, if your Linux account name is purple, and you have extracted the file to your home directory, you have to change /your path
$ cd ns-2.35
$ ./validate
Note that this validation takes a really long time. If it starts out ok, you probably have a good installation.
1. Download & install some packages from repository if needed (Now its optional)
$ sudo apt-get update
$ sudo apt-get install build-essential autoconf automake libxmu-dev
2. Download NS All In One 2.35
URL: http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download
$ tar -zxvf ns-allinone-2.35.tar.gz
$ cd ns-allinone-2.35
$ ./install
3. Set environment variables
$ gedit ~/.bashrc
Add the following lines to the end of the file. Remember replace “/your/path” by the folder where you have stored extracted the ns-2 file (For example, if your Linux account name is purple, and you have extracted the file to your home directory, you have to change /your path
# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.35/otcl-1.14
NS2_LIB=/your/path/ns-allinone-2.35/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$USR_LOCAL_LIB
OTCL_LIB=/your/path/ns-allinone-2.35/otcl-1.14
NS2_LIB=/your/path/ns-allinone-2.35/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
TCL_LIB=/your/path/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/your/path/ns-allinone-2.35/bin:/your/path/ns-allinone-2.35/tcl8.5.10/unix:/your/path/ns-allinone-2.35/tk8.5.10/unix
NS=/your/path/ns-allinone-2.35/ns-2.35/
NAM=/your/path/ns-allinone-2.35/nam-1.15/
export PATH=$PATH:$XGRAPH:$NS:$NAM
XGRAPH=/your/path/ns-allinone-2.35/bin:/your/path/ns-allinone-2.35/tcl8.5.10/unix:/your/path/ns-allinone-2.35/tk8.5.10/unix
NS=/your/path/ns-allinone-2.35/ns-2.35/
NAM=/your/path/ns-allinone-2.35/nam-1.15/
export PATH=$PATH:$XGRAPH:$NS:$NAM
Ensure that it immediately takes effect:
$ source ~/.bashrc
4. You can test the installation by doing the following:$ source ~/.bashrc
$ cd ns-2.35
$ ./validate
Note that this validation takes a really long time. If it starts out ok, you probably have a good installation.
No comments:
Post a Comment