If you use macports this is how you enable the variant flag:

% port -v install ruby +tk

or for 1.9.x:

% port -v install ruby19 +tk

rvm will install it as default. There is documentation on the rvm site
for further integration with macports and tk

~Stu

On Tue, May 10, 2011 at 8:06 PM, Patrick Lynch <kmandpjlynch / verizon.net> wrote:
> Hi,
>
> I'm actually using a Mac with Snow Leopard...
> At the Bash command line: the command tclsh invokes TCL, so it is installed
> on my machine...
> However, in irb: require 'tk' gives an error message...
>
> I'd appreciate any advice...quite frankly, I don't know how to install TCL
> with Ruby gems...
>
> Thank you
>
> ----- Original Message ----- From: "Eric Christopherson"
> <echristopherson / gmail.com>
> To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
> Sent: Tuesday, May 10, 2011 4:00 PM
> Subject: Re: Ruby Activity
>
>
>> On Tue, May 10, 2011 at 2:46 PM, Patrick Lynch <kmandpjlynch / verizon.net>
>> wrote:
>>>
>>> I'm using Ruby 1.8.7 and it does not contain TK...
>>> ie, in irb: 'require TK' returns error 'no such file to load...'
>>
>> It's actually not built into the RubyInstaller Windows versions. Maybe
>> there are other distributions that it's not built into either. (You
>> can install Tcl/Tk yourself and then use the tk_as_gem gem to get it.)
>>
>>>
>>> ----- Original Message ----- From: "Stu" <stu / rubyprogrammer.net>
>>> To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
>>> Sent: Saturday, May 07, 2011 4:31 PM
>>> Subject: Re: Ruby Activity
>>>
>>>
>>>> Ruby comes with tk build in. While your investigating which toolkits
>>>> are right for your project that on is distributed with the language to
>>>> play with right off the bat.
>>>>
>>>> ~Stu
>>>>
>>>> On Sat, May 7, 2011 at 11:17 AM, Bobby S. <kajisakka / gmail.com> wrote:
>>>>>
>>>>> Is ruby still being developed? The official site has last release in
>>>>> dec
>>>>> 2010.
>>>>>
>>>>>
>>>>> The other thing is are any of the GUI toolkits still being developed.
>>>>> Most of them date back to 2009 or later.
>>>>>
>>>>> I love ruby but I went looking for a GUI toolkit today and found no
>>>>> active ones then I started looking at ruby for the reason and now I am
>>>>> worried.
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> --
>>>>> Posted via http://www.ruby-forum.com/.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>