nam problem

View: New views
7 Messages — Rating Filter:   Alert me  

nam problem

by balador :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



I have installed ns-2.33 on cygwin on xp.

while running simple example programs, I get error,

$ nam: no display name and no $DISPLAY environment variable.

 

I tried set it with export DSIPLAY=:0..0

it gives error  

$ nam: couldn't connect to display "0.0"

I also tried  startx before running programs, it gives following error,

$ 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..." 

can anybody figure out where the problem lies?

I am new to ns-2 as well as linux environment so please.....

 

Thanks in anticipation.
 
Regards, 

ali balador,


     

Parent Message unknown Re: nam problem

by lukman_hanif :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Ali balador,

I also have the same problem in linux fedora.... it happens to people who use fedora 9 & 10.... you can go to this link http://forums.fedoraforum.org/showthread.php?t=206795
for the solution in linux fedora.....sorry, it's not for cygwin windows but maybe you could get some info from there...

Lukman




________________________________
From: "ns-users-request@..." <ns-users-request@...>
To: ns-users@...
Sent: Tuesday, March 10, 2009 12:00:31 AM
Subject: Ns-users Digest, Vol 63, Issue 9

Send Ns-users mailing list submissions to
    ns-users@...

To subscribe or unsubscribe via the World Wide Web, visit
    http://mailman.isi.edu/mailman/listinfo/ns-users
or, via email, send a message with subject or body 'help' to
    ns-users-request@...

You can reach the person managing the list at
    ns-users-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ns-users digest..."


Today's Topics:

   1. How to change node configuration when simulation is running?
      (simayeji)
   2. Mobile ip and sctp (Spyros Marinis)
   3. Re: How to assign a new address to a node (martini.spy)
   4. nam problem (ali bala)


----------------------------------------------------------------------

Message: 1
Date: Mon, 9 Mar 2009 11:08:22 +0800 (CST)
From: simayeji <simayeji@...>
Subject: [ns] How to change node configuration when simulation is
    running?
To: ns-users@...
Message-ID:
    <7008073.146351236568102288.JavaMail.coremail@...>
Content-Type: text/plain; charset=gbk

Hello everyone,
I want to change the node configuration when simulation is running. For example, i want to change RXthreshold of all nodes at 2.5s. How can I make it in my tcl script?

thanks very much.



??????????????????????????????????

------------------------------

Message: 2
Date: Mon, 9 Mar 2009 08:48:16 +0000 (GMT)
From: Spyros Marinis <spyros_mar@...>
Subject: [ns] Mobile ip and sctp
To: ns-users@...
Message-ID: <695883.3003.qm@...>
Content-Type: text/plain; charset=iso-8859-7

Hello all!
Does anyone know how I can use mobile ip with sctp at transport layer, in a wired-cum-wireless topology with hierarchical addresses?
The standard method doesn't work in this case; should I modify something???
I would be very grateful if you could help in any way,
Spyros




     
___________________________________________________________
?????????????? Yahoo!;
?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail
???????? ??? ???????? ?????? ????????? ???? ??? ???????????
????????? http://login.yahoo.com/config/mail?.intl=gr 


------------------------------

Message: 3
Date: Mon, 9 Mar 2009 02:37:01 -0700 (PDT)
From: "martini.spy" <spyros_mar@...>
Subject: Re: [ns] How to assign a new address to a node
To: ns-users@...
Message-ID: <22409732.post@...>
Content-Type: text/plain; charset=UTF-8


nobody knows???? :(


martini.spy wrote:

>
>
> Hi all!
> I have a mobile node that has been defined with a certain hierarchical
> address and bound to the appropriate base station, like this:
>
> set if_1 [$ns_ node 1.0.1] ??? ?????????????????????????????????? ???
> $if_1 base-station [AddrParams addr2id [$BS_umts node-addr]]
>
> How can I change this afterwards and assign to the same node a new
> hierarchical address that corresponds with another base station, with
> which it should communicate so on? What must I modify in the c++ code?
>
> (I have tried -MobileIP ON option, with no result. After all, I am using
> sctp and I don't know if that's applicable.)
>
> Please let me know if anybody knows something about it. Any help will be
> highly appreciated. Thanks in advance.
> Spyros
>
>
>
>      
> ___________________________________________________________
> ?????????????? Yahoo!;
> ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail
> ???????? ??? ???????? ?????? ????????? ???? ??? ???????????
> ????????? http://login.yahoo.com/config/mail?.intl=gr 
>
>

--
View this message in context: http://www.nabble.com/How-to-assign-a-new-address-to-a-node-tp22376659p22409732.html
Sent from the ns-users mailing list archive at Nabble.com.




------------------------------

Message: 4
Date: Mon, 9 Mar 2009 14:28:01 -0700 (PDT)
From: ali bala <mrbalador@...>
Subject: [ns] nam problem
To: ns-users@...
Message-ID: <423217.60603.qm@...>
Content-Type: text/plain; charset=iso-8859-1


I have installed ns-2.33 on cygwin on xp.

while running simple example programs, I get error,

$ nam: no display name and no $DISPLAY environment variable.

?

I tried set it with export DSIPLAY=:0..0

it gives error ?

$ nam: couldn't connect to display "0.0"

I also tried ?startx before running programs, it gives following error,

$ 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..."?

can anybody figure out where the problem lies?

I am new to ns-2 as well as linux environment so please.....

?

Thanks in anticipation.
?
Regards,?

ali balador,


     

------------------------------

_______________________________________________
Ns-users mailing list
Ns-users@...
http://mailman.isi.edu/mailman/listinfo/ns-users


End of Ns-users Digest, Vol 63, Issue 9
***************************************



     

Parent Message unknown Re: NAM Problem

by COULIBALY Yaya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi All,

I am using ns-d veresion 2.33 on Redhat Entreprise server 5.0

I hav installed and vaildated this version. However, when trying to execute
the example1.tcl of the tutorial by Mark, I go the following error message:"
ns finish: couldn't execute "nam": no such file or directory
    while executing
"exec nam out.nam &"
    (procedure "finish" line 7)
    invoked from within
"finish"

After validating the installation, I got this message :"validate overall
report: all tests passed
But still, I am not able to go through with the first example1.tcl.
Any suggetions.
************************
COULIBALY Yahaya
PhD Candidate
Faculty of Computer Science & Information Systems
Department of Communication & Computer Systems
Malaysia University of Technology (UTM)
81310 Skudai, Johor Bahru, Johor
Cell: 0060196886615

Re: NAM Problem

by james.cabs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

The reason for getting this error is : Path is not set for NAM file.
What you need to do is set the path as:

 NAM=/root/Download/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$NAM

You can also execute the nam simply by giving the nam path as exec
/root/Download/ns-allinone-2.33/nam-1.13/nam file.nam

Regards

Kiran


On Sun, Mar 15, 2009 at 11:24 AM, COULIBALY Yaya <cyahaya@...> wrote:

>
> Hi All,
>
> I am using ns-d veresion 2.33 on Redhat Entreprise server 5.0
>
> I hav installed and vaildated this version. However, when trying to execute
> the example1.tcl of the tutorial by Mark, I go the following error
> message:"
> ns finish: couldn't execute "nam": no such file or directory
>    while executing
> "exec nam out.nam &"
>    (procedure "finish" line 7)
>    invoked from within
> "finish"
>
> After validating the installation, I got this message :"validate overall
> report: all tests passed
> But still, I am not able to go through with the first example1.tcl.
> Any suggetions.
> ************************
> COULIBALY Yahaya
> PhD Candidate
> Faculty of Computer Science & Information Systems
> Department of Communication & Computer Systems
> Malaysia University of Technology (UTM)
> 81310 Skudai, Johor Bahru, Johor
> Cell: 0060196886615
>



--
........................................................................................................................................................
Every footstep in life is full of possibilities we just need to know our
ability to explore them
........................................................................................................................................................
........................................................................................................................................................

Re: nam problem

by hakki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
I faced with the same problem, have you ever found any solution to your problem

thanks
hakki

balador wrote:

I have installed ns-2.33 on cygwin on xp.

while running simple example programs, I get error,

$ nam: no display name and no $DISPLAY environment variable.

 

I tried set it with export DSIPLAY=:0..0

it gives error  

$ nam: couldn't connect to display "0.0"

I also tried  startx before running programs, it gives following error,

$ 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..." 

can anybody figure out where the problem lies?

I am new to ns-2 as well as linux environment so please.....

 

Thanks in anticipation.
 
Regards, 

ali balador,


     

Re: nam problem

by Vineet Kumar-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Hakki.

I had the same problem with ns2.33 on Fedora 9,
there is some tk binding problem there...

What I did:
 Download the tk-8.4-lastevent.patch from ,
 http://bugs.gentoo.org/show_bug.cgi?id=225999

 place it in ur tk8.4.18 directory
 and go to the same directory and execute,
  patch -p0 < ./tk-8.4-lastevent.patch

then go back , cd ..

and do ,

./install

./configure

 make

./validate

It should solve the problem (it did for me :)! )

Regards,

Vineet Kumar



-----Original Message-----
From: ns-users-bounces@... on behalf of hakki
Sent: Fri 3/20/2009 12:43 PM
To: ns-users@...
Subject: Re: [ns] nam problem
 


Hi
I faced with the same problem, have you ever found any solution to your
problem

thanks
hakki


balador wrote:

>
>
>
> I have installed ns-2.33 on cygwin on xp.
>
> while running simple example programs, I get error,
>
> $ nam: no display name and no $DISPLAY environment variable.
>
>  
>
> I tried set it with export DSIPLAY=:0..0
>
> it gives error  
>
> $ nam: couldn't connect to display "0.0"
>
> I also tried  startx before running programs, it gives following error,
>
> $ 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..." 
>
> can anybody figure out where the problem lies?
>
> I am new to ns-2 as well as linux environment so please.....
>
>  
>
> Thanks in anticipation.
>  
> Regards, 
>
> ali balador,
>
>
>      
>
>

--
View this message in context: http://www.nabble.com/nam-problem-tp22422807p22619528.html
Sent from the ns-users mailing list archive at Nabble.com.




**************************************************************************************************
E-mail Confidentiality Notice and Disclaimer.

This e-mail and any files transmitted with it are confidential and are intended solely for the use
of the individual or entity to which they are addressed. Access to this e-mail by anyone else is
unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not
necessarily secure. Hitachi does not accept responsibility for any changes made to this message
after it was sent.
Hitachi checks outgoing e-mail messages for the presence of computer viruses.
**************************************************************************************************

Re: nam problem

by carolina2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have the same problem than you when I try to run nam
$ nam out.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 {[string equal [tk windowingsystem] "classic"]
> || [string equal [tk windowingsystem] "aqua"]} {
> bind Listbox <MouseWheel> {
> %W yview scroll [expr {..."


PLEASE if you have resolved the problem can you tell me about it.
It will be a great help for me .
Thanks in advance.


balador wrote:

I have installed ns-2.33 on cygwin on xp.

while running simple example programs, I get error,

$ nam: no display name and no $DISPLAY environment variable.

 

I tried set it with export DSIPLAY=:0..0

it gives error  

$ nam: couldn't connect to display "0.0"

I also tried  startx before running programs, it gives following error,

$ 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..." 

can anybody figure out where the problem lies?

I am new to ns-2 as well as linux environment so please.....

 

Thanks in anticipation.
 
Regards, 

ali balador,