It's something you enable when you compile it. It's optional based on
different user needs. For example if you where to use ruby on a
embedded system you may not need the extra space taken up by tk or
rdoc so you remove it and slim down the install.
For example on FreeBSD you enable the flag tk when running make install.
On Gentoo you add the use flag tk for it to build with it.
Darwin refers to them as variants to help with OS conflicts here is an
example output from a mac for 1.8.7:
% port variants ruby
ruby has the variants:
mactk: enable MacTk (Tk.framework without X11) support
* conflicts with tk
no_doc: do not install rdoc documents
[+]thread_hooks: apply Apple's thread_hooks patch
tk: enable tk support
* conflicts with mactk
universal: Build for multiple architectures
1.9:
% port variants ruby19
ruby19 has the variants:
c_api_docs: Generate documentation for Ruby C API
mactk: Build using Mac OS X Tk Framework
* conflicts with tk
nosuffix: Don't add the 1.9 program suffix to the executables. Note: that
makes the port conflict with ruby (1.8), rb-rubygems, and rb-rake
ports.
tk: Build using MacPorts Tk
* conflicts with mactk
universal: Build for multiple architectures
~
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...'
----- Original Message ----- From: "Stu" <
[email protected]>
To: "ruby-talk ML" <
[email protected]>
Sent: Saturday, May 07, 2011 4:31 PM
Subject: Re: Ruby Activity