How to require tkextlib/tkimg

Hi all,

I have Ruby 2.0.0-x64 installed on my windows 8. I want to require
tkimage.rb
. I check folder of ‘C:/Ruby200-x64/ruby/2.0.0’ and I can see many
subfolders, of two of which are tk and tkextlib. And inside th tkextlib
subfolder, I can see tkimage.rb.

This is what I see in a console window:
ruby 2.0.0p451 (2014-02-24) [x64-mingw32]

C:\Users\alex>irb
irb(main):001:0> require ‘tk’
=> true
irb(main):002:0> require ‘tkextlib/tkimage’
LoadError: cannot load such file – tkextlib/tkimage
from
C:/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_re
quire.rb:55:in require' from C:/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_re quire.rb:55:inrequire’
from (irb):2
from C:/Ruby200-x64/bin/irb:12:in `’
irb(main):003:0>

My question: How can Ruby not see the file of tkimage? which line code
should I use to require this file?

Thanks,

Problem sovled by reading another post on the forum,
entitled “tkimg fails to import?”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs