Thursday, June 9, 2011

Aqua-sim installation guide

Aqua-SIM installation guide
(nishantkumar35@gmail.com)


After a lot of hard wok finally i installed Aqua-Sim . Here i am explaining steps required to install Aqua-Sim.

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

Wednesday, January 13, 2010

Ojass-2010

OJASS 2010
OJASS , the annual techno-management fest of NIT Jamshedpur, invitesyou to explore the 2ND biggest fest in eastern India. Your sproutingenergy and enthusiasm now finds a right platform to erupt as a volcanowhich heats up the ambience for days to come.An exemplary episode in DUES-X-MACHINA(the robotix events) willcapture the stage and to transcend the horizon of success wouldrequire unprecedented technical skills and exemplary presence of mind.Computer geeks battle out in SOFT-RACE with their forged softwares.Websites are built not out of mere HTML , PHP but out of yourimaginative build ,check it in WEB WEAVER (website designingcompetition). Directors in the making will showcase unprecedentedskills in DIRECTOR’S CUT (movie making) . PULP FICTION awaits yourpaper presentation skills. Budding entrepreneurs and potentialbiz-giants can present their innovative ideas in B-PLAN. SANRACHNA(model making) awaits your technical-cum-application-cum-imaginativebuild. TECHNO SURGERY facilitates you to dismantle and assemblemachines in time constraint. CADILLAC involves design augmented withanalysis. Arial controllers will endeavor to limit the sky with their manualgliders in GARUDHA. Check your heart-beat in BULLS AND BEARS, avirtual stock market. Winning cars of SAE INDIA 09 will be displayedin AUTO EXPO.With all these hysterical events awaiting you at OJASS, you areinvited to realize the energy and vigour of OJASS 2010. For furtherqueries log on to www.ojs.co.in









OJASS 2010OJASS, the annual techno-management fest of NIT Jamshedpur, invitesyou to explore the 2ND biggest fest in eastern India. Your sproutingenergy and enthusiasm now finds a right platform to erupt as a volcanowhich heats up the ambience for days to come.An exemplary episode in DUES-X-MACHINA(the robotix events) willcapture the stage and to transcend the horizon of success wouldrequire unprecedented technical skills and exemplary presence of mind.Computer geeks battle out in SOFT-RACE with their forged softwares.Websites are built not out of mere HTML , PHP but out of yourimaginative build ,check it in WEB WEAVER (website designingcompetition). Directors in the making will showcase unprecedentedskills in DIRECTOR’S CUT (movie making) . PULP FICTION awaits yourpaper presentation skills. Budding entrepreneurs and potentialbiz-giants can present their innovative ideas in B-PLAN. SANRACHNA(model making) awaits your technical-cum-application-cum-imaginativebuild. TECHNO SURGERY facilitates you to dismantle and assemblemachines in time constraint. CADILLAC involves design augmented withanalysis. Arial controllers will endeavor to limit the sky with their manualgliders in GARUDHA. Check your heart-beat in BULLS AND BEARS, avirtual stock market. Winning cars of SAE INDIA 09 will be displayedin AUTO EXPO.With all these hysterical events awaiting you at OJASS, you areinvited to realize the energy and vigour of OJASS 2010. For furtherqueries log on to http://www.ojs.co.in/