From: Rich Leblanc Date: 2010-07-20T11:44:14+09:00 Subject: Re: LoadError: no such file to load -- tk Rich Leblanc wrote: > Eric Christopherson wrote: >> On Mon, Jul 19, 2010 at 3:26 PM, Rich Leblanc wrote: >>> Roger Pack wrote: >>>> This means your ruby was built without the tk extension built. >>>> >>>> Useful refs: >>>> http://en.wikibooks.org/wiki/Ruby_Programming/GUI_Toolkit_Modules/Tk >>>> http://wiki.github.com/rdp/ruby_tutorials_core/tk (availability). >>>> Cheers. >>>> -r >>> >>> Yes I know, but why not? Neither of those links was helpful. >> >> How did you install Ruby? Using RubyInstaller? That doesn't include Tk >> (because, as I understand it, it's currently impossible to >> automatically build and package Tk along with it). >> >> Assuming you installed Tk, you can compile a gem called tk_as_gem that >> will work with your existing Tk installation. You'll need the Ruby >> development kit (MSys tools, available from http://rubyinstaller.org/) >> to compile it. > > Like the first post says; > > I'm trying to install Ruby on a 64 bit Windows 7 machine following this > guide; > > http://www.tkdocs.com/tutorial/install.html#installwin > > > I installed ActiveState ActiveTCL which includes tk. I can run wish85 > successfully. Tcl/tk is installed. > > Like the first post says, after setting environment variables and > compiling according to the instructions it doesn't work. And by that I > mean that when I run require 'tk' from the irb it gives the error > message; > > LoadError: no such file to load -- tk I'm not using rubyinstaller. I'm compiling from source. >> Assuming you installed Tk, you can compile a gem called tk_as_gem that >> will work with your existing Tk installation. You'll need the Ruby >> development kit (MSys tools, available from http://rubyinstaller.org/) >> to compile it. I don't understand what any of that means or why I'd want to do it. I'm just a newb trying to learn ruby but can't get it to install with tk following that tutorial. -- Posted via http://www.ruby-forum.com/.