tags:

views:

133

answers:

1
+1  Q: 

Ruby TK Download

require 'tk'
root = TkRoot.new { title "Hello world" }
TkLabel.new(root) do
text 'Hello world!'
end
Tk.mainloop

Where can i download Ruby TK? i googled but didnt find it.

A: 

On linux it is contained in the libtcltk-ruby package.

sudo apt-get install libtcltk-ruby

On windows, the bindings are included with the one-click ruby installer.

-John

John T
apt-get is only for Debian based systems, other distributions will use other package management systems.
Terence Simpson
With a question this basic it's safe to assume he isn't using a distro futher than Ubuntu.
John T
It's not even clear they are using Windows or Linux here.
Terence Simpson
Well if hes using OS X it comes preinstalled.
John T
Or, you could just add `yum install libtcltk-ruby` and rest assured that one of these two will do the job for him.
Swanand