LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2012, 04:44 AM   #1
dina
LQ Newbie
 
Registered: Oct 2012
Posts: 23

Rep: Reputation: Disabled
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
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?????
 
Old 10-21-2012, 08:53 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Welcome to LQ.
Quote:
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 )
http://www.linuxquestions.org/questi...04-a-842109/#4 > post #4
.. Unpack nam-1.14.<arch>.tar.gz, And : sudo cp nam /usr/local/bin/

.
 
1 members found this post helpful.
Old 11-01-2012, 03:48 AM   #3
dina
LQ Newbie
 
Registered: Oct 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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]"
dina@ubuntu:~/Aqua-sim/ns-2.30/underwatersensor/uw_tcl$



i dont know where is the problem????
 
Old 11-01-2012, 04:08 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
# 3
Quote:
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

.
 
1 members found this post helpful.
Old 11-01-2012, 04:49 AM   #5
dina
LQ Newbie
 
Registered: Oct 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thank you
the problem now is solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aqua sim in ns2 - DBR protocol saye_s Linux - Software 71 03-04-2017 09:19 AM
how to interface a sim 300 gsm modem to a ubuntu desktop Prakashversion1 Linux - Hardware 1 07-11-2012 12:38 AM
How to setup SIM card reader on Ubuntu joboy Linux - Hardware 2 06-25-2011 11:10 AM
Problems with Ubuntu and CH Flight Sim Yoke smithmalice Linux - Hardware 0 02-02-2008 09:47 AM
-=How Install SIM v0.9.1 in Suse 8.2??=- Worm Linux - Software 1 12-08-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration