From: Matt Maycock Date: 2012-03-22T00:51:09+09:00 Subject: Ruby+Tcl/Tk+Cygwin --20cf303f6a267e1b0904bbc2c208 Content-Type: text/plain; charset=ISO-8859-1 Hello List! So years ago -- in the before time, around 2008-2010 -- I set up cygwin with ruby; I also installed active state tcl/tk. I used this to provide some simple programs for my employer, and everything worked fine. Now, I update cygwin and ruby, and run the programs, and I get this: /usr/lib/ruby/1.8/tk.rb:1127:in `initialize': tcltklib: fail to Tk_Init(). no display name and no $DISPLAY environment variable (RuntimeError) from /usr/lib/ruby/1.8/tk.rb:1127:in `new' from /usr/lib/ruby/1.8/tk.rb:1127 And examining the file doesn't help me understand what's going on. To reproduce this, I did the following: ruby -r tk -e '' Is this a problem on the ruby side? With ActiveTcl? Should I use XWindows somehow with cygwin since it's asking for Display? - Cygwin installed today - ruby version is ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-cygwin] - ActiveState Tcl was installed using "ActiveTcl8.5.11.1.295590-win32-ix86-threaded" installer. Thank you kindly for any help, or even just saying "Hey, this sounds like you wanna ask ActiveState or Cygwin instead..." ~Matthew --20cf303f6a267e1b0904bbc2c208 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello List!

So years ago -- in the before time, around 2= 008-2010 -- I set up cygwin with ruby; I also installed active state tcl/tk= . =A0I used this to provide some simple programs for my employer, and every= thing worked fine.

Now, I update cygwin and ruby, and run the programs, an= d I get this:

/usr/lib/ruby/1.8/tk.rb:1127:in= `initialize': tcltklib: fail to Tk_Init(). no display name and no $DIS= PLAY environment variable (RuntimeError)
=A0 =A0 =A0 =A0 from /usr/lib/ruby/1.8/tk.rb:1127:in `new'
=A0 =A0 =A0 =A0 from /usr/lib/ruby/1.8/tk.rb:1127

And examining the file doesn't help me understand what's g= oing on. =A0To reproduce this, I did the following:

=A0 ruby -r tk -e ''

I= s this a problem on the ruby side? =A0With ActiveTcl? =A0Should I use XWind= ows somehow with cygwin since it's asking for Display?

=A0- Cygwin installed today
=A0- ruby version is=A0ruby 1.8.= 7 (2012-02-08 patchlevel 358) [i386-cygwin]
=A0- ActiveState Tcl = was installed using "ActiveTcl8.5.11.1.295590-win32-ix86-threaded"= ; installer.

Thank you kindly for any help, or even just saying &quo= t;Hey, this sounds like you wanna ask ActiveState or Cygwin instead..."= ;

~Matthew

--20cf303f6a267e1b0904bbc2c208--