I have installed ns2.32 in ubuntu10.04 according to the following steps.......
$ cd /home/khinmyo/ns-allinone-2.32
khinmyo@ubuntu:~/ns-allinone-2.32$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3
$ cd otcl-1.13/
$ ls
$ gedit Makefile.in
change CC=gcc-4.3
$ cd ..
$ sudo su
# ./install
$ su khinmyo
$ gedit ~/.bashrc
Copy the following lines:
#LD_LIBRARY_PATH
OTCL_LIB=/home/khinmyo/ns-allinone-2.32/otcl-1.13
NS2_LIB=/home/khinmyo/ns-allinone-2.32/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/khinmyo/ns-allinone-2.32/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
#PATH
XGRAPH=/home/khinmyo/ns-allinone-2.32/bin:/home/khinmyo/ns-allinone-2.32/tcl8.4.18/
unix:/home/khinmyo/ns-allinone-2.32/tk8.4.18/unix
NS=/home/khinmyo/ns-allinone-2.32/ns-2.32/
NAM=/home/khinmyo/ns-allinone-2.32/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM
After these steps,
when I type "ns" , it show %
and when I type nam , it show nam graph . It show that ns2 is successfully installed!!!!!
However, after patching aodv-uu in ns2,
when I type "ns", it show that ns: command not found!!! And
when I type "nam" it show the same!!!
I patch aodv-uu into ns2.32 according to these steps.....
download aodv-uu from
http://en.sourceforge.jp/projects/sf...dvuu/releases/
1. put aodv-uu-0.9.5.tar.gz under ns-2.32
tar xvfz aodv-uu-0.9.5.tar.gz
2. put ns-2.32-aodv-uu-patch under ns-2
3. Open the terminal and type
ln -s ./aodv-uu-0.9.5 ./aodv-uu
patch -p1 < aodv-uu/patches/ns-2.32-aodv-uu.patch
./configure
make distclean
./configure
make
SO, help me how to patch aodv-uu and how to do !!!!!