From: "Low,Chee Hoong" Date: 2002-09-24T18:21:45+09:00 Subject: Using tcltk with cygwin Ruby This is a multi-part message in MIME format. ------=_NextPart_000_03F7_01C263EE.DB3ADF30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am trying to use TCL/TK with the cygwin version of Ruby. I have = tcl/tk installed previously for cygwin as well and am running ruby from = the cygwin environment. As I type "require 'tk'" from irb, I get this = error: LoadError: tcltklib: tcltk_stubs init error(-1) from /usr/local/lib/ruby/1.6/tk.rb:7:in `require' from /usr/local/lib/ruby/1.6/tk.rb:7 from (irb):1:in `require' from (irb):1 I believe this error comes from when the tk.rb file tries to load the = tcltklib.so =20 This shared library file was probably put there when I installed ruby. = The ruby installation I used was rub-1.6.7-i386-cygwin.tar.gz. Cygwin dll version is 1.3.12 so it is quite new. I've done a search for this problem but unfortunately the references = I've found were in Japanese so I couldn't read and understand the fix = (if it was mentioned). Any ideas on how to fix this problem? I would prefer to stay in the = cygwin environment. Thanks, Chee ------=_NextPart_000_03F7_01C263EE.DB3ADF30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I am trying to use TCL/TK with the = cygwin version=20 of Ruby.  I have tcl/tk installed previously for cygwin as well and = am=20 running ruby from the cygwin environment.  As I type "require 'tk'" = from=20 irb, I get this error:
 
LoadError: tcltklib: tcltk_stubs init=20 error(-1)
        from=20 /usr/local/lib/ruby/1.6/tk.rb:7:in=20 `require'
        from=20 /usr/local/lib/ruby/1.6/tk.rb:7
      &n= bsp;=20 from (irb):1:in `require'
        = from=20 (irb):1
 
I believe this error comes from when = the tk.rb file=20 tries to load the tcltklib.so
 
This shared library file was = probably put=20 there when I installed ruby.  The ruby=20 installation I used was rub-1.6.7-i386-cygwin.tar.gz.
 
Cygwin dll version is 1.3.12 so it is = quite=20 new.
 
I've done a search for this problem but = unfortunately the references I've found were in Japanese so I couldn't = read and=20 understand the fix (if it was mentioned).
 
Any ideas on how to fix this = problem?  I would=20 prefer to stay in the cygwin environment.
 
Thanks,
 
Chee
 
------=_NextPart_000_03F7_01C263EE.DB3ADF30--