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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-11-2010, 02:58 AM
|
#1
|
LQ Newbie
Registered: Feb 2010
Posts: 1
Rep:
|
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.
|
|
|
02-11-2010, 06:44 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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 03:14 AM.
|
|
|
03-16-2011, 04:53 AM
|
#3
|
LQ Newbie
Registered: Mar 2011
Posts: 2
Rep:
|
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....
|
|
|
03-16-2011, 05:22 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
@ 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 06:46 AM.
|
|
|
03-16-2011, 06:21 PM
|
#5
|
LQ Newbie
Registered: Mar 2011
Posts: 2
Rep:
|
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 ??
|
|
|
03-17-2011, 06:31 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 5
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 06:42 AM.
|
|
|
All times are GMT -5. The time now is 11:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|