1. Aquasim is NS-2 based network simulator designed specially for aqueous medium network.
2. Download aquasim : http://ubinet.engr.uconn.edu/mediawiki/images/7/72/Aqua-sim.tgz
3. Before installing Aqua-Sim, you should make sure that your linux system contains the
essential libs for the installation of ns-allinone-2.30. Usually, it requires gcc/g++
complier, automake, X11 lib. To make Aqua3D works, some other packages, such as
freeglut, GTK+ 2.0 and wxGTK-2.8.11, are also required .
4. All these packages can be installed from synaptic package manager.
5. installing the dependencies:
sudo apt-get install xorg-dev g++ xgraph
6. Copy and paste aqua-sim file wherever you want. Suppose you have pasted it in your home
directory.
7. Double click on tar file to extract or use command:
tar -xvf aqua-sim.tgz
8. move into extracted folder:
cd ns-allinone-2.30
9. sudo ./install (if you are using terminal as root then ./install)
10. if there is problem in otcl then:
change ns-allinone-2.30/otcl-1.12/Makefile.in. Find the line that says:
CC= @CC@
and change it to:
CC= gcc-4.3 or your gcc-version
11. if problem presist:
change otcl-1.12/configure.in
find:
Linux*)
SHLIB_CFLAGS="-fpic"
SHLIB_LD="ld -shared"
SHLIB_LD="gcc -shared" //add this line
SHLIB_SUFFIX=".so"
DL_LIBS="-ldl"
SHLD_FLAGS=""
12. run this command in otcl folder:
autoconf -f
13. if error in tclcl occur (warning: deprecated conversion from string constant to ‘char*’
• cast the “const char*” to “char*” in line 566 in Tcl.cc like this: char *p =
(char*)strchr(localName, ‘(‘)
• Do the same with all other lines that fail in queue/red.cc 876-879: (char*)strstr(v-
>name(), “ave”) etc. for the next lines
• and in queue/rio.cc line 565 to 571: (char *)strstr(v->name(), “ave”)…
• and in queue/pi.cc line 316 and 317: (char *)strstr(v->name(), “prob”)…
• and in queue/vq.cc line 333: (char *)strstr(v->name(), “curq”)
• and in queue/rem.cc line 335-337: (char *)strstr(v->name(), “ave”)…
▪ and in queue/gk.cc line 207: (char *)strstr(v->name(), “curq”)
14. install ns2.30 by typing ./install in terminal
(first change the current directory to ns-allinone-2.30)
15. Edit some paths
$ gedit ~/.bashrc
Put these lines on that file in the last.
# LD_LIBRARY_PATH
OTCL_LIB=/home /ns-allinone-2.30/otcl-1.12
NS2_LIB=/home /ns-allinone-2.30/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 /ns-allinone-2.30/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home /ns-allinone-2.30/bin:/home /ns-allinone-2.30/tcl8.4.18/unix:/home /ns-allinone-
2.30/tk8.4.18/unix:/home /ns-allinone-2.30/xgraph-12.1/
NS=/home /ns-allinone-2.30/ns-2.30/
NAM=/home /ns-allinone-2.30/nam-1.13/
export PATH=$PATH:$XGRAPH:$NS:$NAM
16. close terminal and reopen it. If any thing error occurs, check your .bashrc file and correct paths.
17. go to ns-2.30 folder inside ns-allinone2.30.
sudo ./validate
18. it may take around 1 hour. If every thing will happen right at last you will get message “all test
correct”.
19. restart terminal type ns. If % sign appears congratulation ! You have successfully installed
Aqua-sim.
20. link for other possible errors:
http://www.isi.edu/nsnam/ns/ns-problems.html
http://nsnam.isi.edu/nsnam/index.php/Troubleshooting