From: Hidetoshi NAGAI Date: 2013-06-06T11:27:07+09:00 Subject: Re: RubyTk - tkimg fails to import? Hi, From: Ryan Braun Subject: RubyTk - tkimg fails to import? Date: Thu, 6 Jun 2013 08:27:20 +0900 Message-ID: >> require 'tkextlib/tkimg' > RuntimeError: TkPackage can't find package Img It means that Ruby/Tk cannot find *Tcl/Tk's* Img extension package. Each library under "tkextlib/" requires to install each extension package of Tcl/Tk. # "tile" library is an exception from those. # Originaly, "tile" is not a standard library. # But now (Tcl/Tk8.4 or later), "tile" is one of the standard libraries. Probably, you use Tcl/Tk libraries included in a RubyInstaller. Those has standard libraries only. Please install the "Img" extension library to your Tcl/Tk installed by the RubyInstaller, or use ActiveTcl-8.4 (or ActiveTcl-8.5 which overwrites ActiveTcl-8.4 to use extensions on ActiveTcl-8.4) on your Ruby/Tk. You can check supported extensions on your Ruby/Tk by "ruby C:/Ruby193/lib/ruby/1.9.1/tkextlib/pkg_checker.rb". If pkg_checker.rb reports "FAIL" by "[name, :package]" for an extension, it means that your Tcl/Tk libraries cannot find the "name" extension. # "Fail to require an extension package" is one of the FAQs of Ruby/Tk. ;-) -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) Department of Artificial Intelligence, Kyushu Institute of Technology