You need to install XServer. Go to website of Cygwin or google to find
out how.

Best,
Teerawat

On 3/15/2009, "ali bala" <mrbala...@yahoo.com> wrote:

>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 
>
>
>      )

Reply via email to