-   Linux - Newbie (
-   -   install aqua-sim on ubuntu (

dina 10-21-2012 05:44 AM

install aqua-sim on ubuntu
i have installed ubuntu 10.10 in my windows7 via VMWare Player4. then i have followed the steps to install ns-2.30
but at the step of editting the paths in bashrc i found this message:
dina@ubuntu:~/Aqua-sim$ gedit ~/.bashrc
dina@ubuntu:~/Aqua-sim$ source ~/.bashrc
bash: /usr/local/lib: is a directory

what is the solution???
when i ignored this and trying to continue:
dina@ubuntu:~/Aqua-sim$ ns
% nam
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
bind Li..."
child process exited abnormally

what can i do?????

knudfl 10-21-2012 09:53 AM

Welcome to LQ.

but at the step of editting the paths in bashrc
Not required for Linux. This will do for 'ns' :
cd ns-allinone-2.30/ns-2.30/ && sudo make install
... I.e. 'make install' will copy 'ns' to /usr/local/bin/

Nam is a separate application.
One version will work for all version of ns-2.xx.
Suggest : Use a binary version ( 1.14 ) > post #4
.. Unpack nam-1.14.<arch>.tar.gz, And : sudo cp nam /usr/local/bin/


dina 11-01-2012 04:48 AM


Originally Posted by knudfl (Post 4811376)
Welcome to LQ.

'make install' will copy 'ns' to /usr/local/bin/

Unpack nam-1.14.<arch>.tar.gz, And : sudo cp nam /usr/local/bin/


i followed these steps: first the ns is run correctly
,but nam is not. i found this error:
dina@ubuntu:~/Aqua-sim/ns-2.30/underwatersensor/uw_tcl$ nam vbf_example_5.tcl
Failed to start animator:
class Animator: constructor failed: unmatched open brace in list
unmatched open brace in list
while executing
"foreach item $traceevent {
if { $next == 1 } {
return $item
if { $item == $tag } {
set next 1
(procedure "get_trace_item" line 3)
invoked from within
"get_trace_item "-t" $line"
(procedure "_o3" line 15)
(Animator infer-network-model line 15)
invoked from within
"$self infer-network-model $tracefile"
(procedure "_o3" line 84)
(Animator init line 84)
invoked from within
"_o3 init vbf_example_5.tcl {}"
(Class create line 1)
invoked from within
"Animator create _o3 vbf_example_5.tcl {}"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new $ANIMATOR_CLASS_ $tracefile [join $args]"

i dont know where is the problem????

knudfl 11-01-2012 05:08 AM

# 3

ns is run correctly, but nam is not.
1) Please open a terminal, and type : nam
... to watch if nam opens OK.

2) 'nam' cannot be used for a .tcl file.
$ nam vbf_example_5.tcl : Is wrong.
Should be : $ ns vbf_example_5.tcl

.. And if an "out.nam" file is created, you can do $ nam out.nam


dina 11-01-2012 05:49 AM

Thank you
the problem now is solved.

All times are GMT -5. The time now is 05:22 AM.