[ns] ns problem1

ali bala mrbalador at yahoo.com
Sun Mar 15 07:53:15 PDT 2009


hi
i had problem with nam (i worke with ns-2 under cygwin)
i did this steps for troubleshooting untill now :
 
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..." 

this is my bashrc file :
 
LD_LIBRARY_PATH=/home/ALI/ns-allinone-2.33/otcl-1.13:/home/ALI/ns-allinone-2.33//lib
TCL_LIBRARY=/home/ALI/ns-allinone-2.33/tcl8.4.18/library
export LD_LIBRARY_PATH
export TCL_LIBRARY
 
and my bash_profile file :
 
PATH=${HOME}/ns-allinone-2.33/bin:${PATH}

but  i have problem with nam now and i see this 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? (and methode for solve)
thanks
mr.ali.balador
homepage:www.balador.org 


      


More information about the Ns-users mailing list