In order to use PNG files with RubyTk I need to import the ‘tkimg’
library (or so I’m told). However, every time I do so, I get an error
message and it fails to import. In IRB I get the following:
RuntimeError: TkPackage can’t find package Img
rescue in require' from C:/Ruby193/lib/ruby/1.9.1/tk/package.rb:83:inrequire’
<top (required)>' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
require' from (irb):4 from C:/Ruby193/bin/irb:12:in’
I’ve looked inside the tkextlib folder and poked around with the
tkimg.rb and within the tkimg folder with no success.
I’m currently using ruby 1.9.3p429 via the windows ruby installer
I’ve tried the newest 2.0 (both x86 and x64 versions) as well with no
I’ve also installed the Active Tcl (even though I don’t think it’s
Anyone know how to fix this?