LinuxQuestions.org
Review your favorite Linux distribution.
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 02-11-2010, 01:58 AM   #1
rishabhk
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
problem in running nam-1.11 of ns-allinone-2.29


while running tcl script in ns-allinone-2.29, i am getting following error
---------------------------------------------------------------------------
rishabh@rishabh-laptop:~/Desktop/my prgs/WSN TEST-VII$ 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
}"rishabh@rishabh-laptop:~/Desktop/my prgs/WSN TEST-VII$ 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 {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {..."

invoked from within
"if {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {..."
---------------------------------------------------------------------------
tracefile is getting created but nam is not working.
please help me.
 
Old 02-11-2010, 05:44 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Welcome to LQ.

[code omitted because of length], etc. :
This is a well known error. > LQ Search, and Google.

Happens, when nam is compiled with a wrong version of tcl , tk.

ns-allinone-2.29 : ns-allinone-2.29.3.tar.gz is to be used :
http://sourceforge.net/projects/nsna...allinone-2.29/
EDIT :
http://www.linuxquestions.org/questi...31-a-801695/#3
...............About the patch 'tk-8.4-lastevent.patch'

Remove all tcl, tk with your package manager = Synaptic.
And redo " ./install "
'tcl, tk version 8.4.1x can usually be reinstalled after the ns2 build.

If you have further issues : The used version of Ubuntu,
like Ubuntu 9.10 Karmic, must be told by every question ..
http://www.linuxquestions.org/linux/...Ask_a_Question
.....

Useful info : http://nsnam.isi.edu/nsnam/index.php/User_Information
.....

Last edited by knudfl; 04-19-2010 at 02:14 AM.
 
Old 03-16-2011, 03:53 AM   #3
deb-worm
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
hi ! i'm new in the forum and i need your help..

i run ns-allinone-2.26 with 3.3 version of gcc..

when i run nam it returns :

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
}"

i try to do the steps you said : with patch you said , i run the patch
, it said me that succeed , but nam doesn' t work again !

i have nam 1-9 and tk8.3.2 !

what should i do?

help me....
 
Old 03-16-2011, 04:22 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
@ deb-worm, post # 3 : Welcome to LQ.

Nam is a separate application : Any 'nam' can be used.
https://docs.google.com/uc?id=0B7S25...=CLPiyxo&hl=en
> > nam-1.14.i586.tar.gz : A 32bits binary nam.
cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/

64bits https://docs.google.com/uc?id=0B7S25...CN3jzIcL&hl=en
> > nam-1.14-x86_64.tar.gz

Last edited by knudfl; 03-16-2011 at 05:46 AM.
 
Old 03-16-2011, 05:21 PM   #5
deb-worm
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
thanks @knudfl !!

i do this step :
> > nam-1.14.i586.tar.gz : A 32bits binary nam.
cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/

now i type nam and it opens , but when i try to run a simple example such as :

#Create a simulator object
set ns [new Simulator]
#Open the nam trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the trace file
close $nf
#Execute nam on the trace file
exec nam ľa out.nam &
exit 0
}
#Create two nodes
set n0 [$ns node]
set n1 [$ns node]
#Create a duplex link between the nodes
$ns duplex-link $n0 $n1 1Mb 10ms DropTail
#Call the finish procedure after 5 seconds of simulation time
$ns at 5.0 "finish"
#Run the simulation
$ns run


the result is :

Cannot connect to existing nam instance. Starting a new one...

nam: Unable to open the file "ľa.nam"


what should i do ??
 
Old 03-17-2011, 05:31 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
# 5
Quote:
exec nam –a out.nam &
Looks wrong. The example shown below works ( filename = 2nodes-1link.tcl ).
.. And it is written in "chapters", so you can use it as a template.
Please read http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html
And code must be shown in code tags : [/code] at text end, [code] at start.
Please edit post 5 http://www.linuxquestions.org/questi....php?do=bbcode
Code:
set ns [new Simulator]

set nf [open out.nam w]
$ns namtrace-all $nf

proc finish {} {
        global ns nf
        $ns flush-trace
        close $nf
        exec nam out.nam &
        exit 0
}

#########################################

set n0 [$ns node]
set n1 [$ns node]

$ns duplex-link $n0 $n1 1Mb 10ms DropTail

#########################################

$ns at 5.0 "finish"

$ns run
Some more examples are attached here
http://www.linuxquestions.org/questi...roblem-726993/

..

Last edited by knudfl; 03-17-2011 at 05:42 AM.
 
  


Reply

Tags
error


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
Installation problem -cmu-extendedns-1.2.2 in ns-allinone-2.31 Anithagec Linux - Networking 0 09-25-2008 06:00 AM
a problem while intalling ns allinone in FC2 imania Linux - Networking 2 08-10-2008 02:59 AM
Problem on launching x11 graphical session of nam/ xgraph for NS-2 aboutjeab Linux - Newbie 5 04-21-2008 07:53 AM
I am getting problem in nam-1.11 while installing ns-allinone-2.29 on fedora core 5 deodutta Linux - General 0 02-03-2007 10:38 PM
Problem with Vocal allinone configuration vishesh4383 Linux - Software 1 11-17-2006 05:00 AM


All times are GMT -5. The time now is 05:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration