sudo apt-get install libqt3-mt-dev qt3-designer qt3-dev-tools
from http://alkautsarpens.wordpress.com/2008/0 2/05/install-ns231-for-ubuntu-gutsy-710/
$ tar -xzvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33
$ sudo apt-get install build-essential autoconf automake libxmu-dev
Now run this command :
$./install
$ gedit ~/.bashrc
Add the following lines to the end of it. Remember replace
“/home/networklab/ns/” by something like “/home/yourname/”
——————————————————————————————–
# LD_LIBRARY_PATH
OTCL_LIB=/home/networklab/ns/ns-allinone-2.3 3/otcl-1.13
NS2_LIB=/home/networklab/ns/ns-allinone-2.3 3/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_L IB:$NS2_LIB:$X11_
LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/networklab/ns/ns-allinone-2.3 3/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/networklab/ns/ns-allinone-2.3 3/bin:/your/path/
ns-allinone-2.33/tcl8.4.14/unix:/your/pa th/ns-allinone-2.33/tk8.4.14/unix
NS=/home/networklab/ns/ns-allinone-2.33/n s-2.33/
NAM=/home/networklab/ns/ns-allinone-2.33/n am-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
————————–
Let it take effect immediately:
$ source ~/.bashrc
Note: if ns unsuccessfully. you can restart your X windows, or reboot your system, to make it work Now,the installation has been completed. then try:
$ ns
Then a “%” will appear on the screen.type “exit” to quit the mode and back to “$”
Validation :
$ cd ns-2.33
$ ./validate
$ tar -xzvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33
$ sudo apt-get install build-essential autoconf automake libxmu-dev
Now run this command :
$./install
$ gedit ~/.bashrc
Add the following lines to the end of it. Remember replace
“/home/networklab/ns/” by something like “/home/yourname/”
——————————————————————————————–
# LD_LIBRARY_PATH
OTCL_LIB=/home/networklab/ns/ns-allinone-2.3
NS2_LIB=/home/networklab/ns/ns-allinone-2.3
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_L
LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/networklab/ns/ns-allinone-2.3
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/networklab/ns/ns-allinone-2.3
ns-allinone-2.33/tcl8.4.14/unix:/your/pa
NS=/home/networklab/ns/ns-allinone-2.33/n
NAM=/home/networklab/ns/ns-allinone-2.33/n
PATH=$PATH:$XGRAPH:$NS:$NAM
————————–
Let it take effect immediately:
$ source ~/.bashrc
Note: if ns unsuccessfully. you can restart your X windows, or reboot your system, to make it work Now,the installation has been completed. then try:
$ ns
Then a “%” will appear on the screen.type “exit” to quit the mode and back to “$”
Validation :
$ cd ns-2.33
$ ./validate
