From: Goran Stankovic Date: 2005-05-17T11:29:13+09:00 Subject: Re: Cannot get Tk extension samples to work with Windows XP --0-107179015-1116296926=:3868 Content-Type: text/plain; charset=us-ascii Hidetoshi, As you suggested, I added: Tk::AUTO_PATH.list <<= "C:Tcl/lib" into: C:\ruby\lib\ruby\1.8\tkextlib\setup.rb and I was able to run BWidget demo with the latest ActiveState ActiveTcl 8.4.9.1.139183. However for iwidgets that I also use, I got the following error: >ruby canvasprintdialog.rb c:/ruby/lib/ruby/1.8/tk/package.rb:86:in `require': TkPackage version conflict for package "Tcl": have 8.3, need 8.4 (RuntimeError) from c:/ruby/lib/ruby/1.8/tkextlib/itcl/incr_tcl.rb:12 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' from c:/ruby/lib/ruby/1.8/tkextlib/itcl.rb:13 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' from c:/ruby/lib/ruby/1.8/tkextlib/iwidgets.rb:7 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' from canvasprintdialog.rb:3 >Exit code: 1 I will check ruby-talk 120774 more closely to see if it offers solution to my problem. Thank you very much for your help. Regards, Goran Hidetoshi NAGAI wrote: From: Goran Stankovic Subject: Cannot get Tk extension samples to work with Windows XP Date: Mon, 16 May 2005 04:46:55 +0900 Message-ID: <20050515194634.10483.qmail@web81404.mail.yahoo.com> > I cannot get any of Tk extension samples to work on Windows XP. I was able to run them successfully on Linux and Mac. (snip) > My guess is that I am missing some environment variable to connect the ruby bindings with the actual Tk extension libraries. I would appreciate if somebody would help with this. I don't know whether tcltklib included 1.8.2-15 supports libraries of Tcl/Tk8.4 or not. Please check Tk::TK_VERSION value. If the value is "8.3" and 1.8.2-15 doesn't support Tcl/Tk8.4, please read [ruby-talk:120774]. If 1.8.2-15 supports Tcl/Tk8.4 and Ruby/Tk cannot find the libarary path as you say, please entry the library path to Tk::AUTO_PATH. Probably, one of the easiest way is to add the following line to the file "/tkextlib/setup.rb". ------------------------------------------------------ Tk::AUTO_PATH.list <<= "/lib" ------------------------------------------------------ If you have the trouble on the specific Tk extension, please add a similar line to "/tkextlib//setup.rb". -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) --0-107179015-1116296926=:3868--