ro@peanut:~/ruby/robots$ ruby rrobots.rb SittingDuck NervousDuck
./tkarena.rb:1:in `require': no such file to load -- tk (LoadError)
from ./tkarena.rb:1
from rrobots.rb:177:in `require'
from rrobots.rb:177:in `run_in_gui'
from rrobots.rb:303
ro@peanut:~/ruby/robots$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
ro@peanut:~/ruby/robots$ #lucid or precise should be fine
ro@peanut:~/ruby/robots$ which ruby
/usr/bin/ruby
ro@peanut:~/ruby/robots$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
ro@peanut:~/ruby/robots$ ruby rrobots.rb SittingDuck NervousDuck
./tkarena.rb:1:in `require': no such file to load -- tk (LoadError)
from ./tkarena.rb:1
from rrobots.rb:177:in `require'
from rrobots.rb:177:in `run_in_gui'
from rrobots.rb:303
ro@peanut:~/ruby/robots$ #hmm
ro@peanut:~/ruby/robots$ apt-cache search ruby |grep tk
libgtksourceview-3.0-common - common files for the GTK+ syntax highlighting widget
libatk1-ruby - Transitional package for ruby-atk
libatk1-ruby1.8 - Transitional package for ruby-atk
libatk1-ruby1.8-dbg - Transitional package for ruby-atk-dbg
libglobalhotkeys-ruby - Transitional package for ruby-globalhotkeys
libglobalhotkeys-ruby1.8 - Transitional package for ruby-globalhotkeys
libgtk2-ruby - Transitional package for ruby-gtk2
libgtk2-ruby1.8 - Transitional package for ruby-gtk2
libgtk2-ruby1.8-dbg - Transitional package for ruby-gtk2-dbg
libgtksourceview2-ruby - Transitional package for ruby-gtksourceview2
libgtksourceview2-ruby1.8 - Transitional package for ruby-gtksourceview2
libgtksourceview2-ruby1.8-dbg - Transitional package for ruby-gtksourceview2-dbg
libgtksourceview2.0-common - common files for the GTK+ syntax highlighting widget
libtcltk-ruby - Transitional package for libtcltk-ruby1.8
libtcltk-ruby1.8 - Tcl/Tk interface for Ruby 1.8
libtcltk-ruby1.9.1 - Tcl/Tk interface for Ruby 1.9.1
ruby-atk - ATK bindings for the Ruby language
ruby-atk-dbg - ATK bindings for the Ruby language (debugging symbols)
ruby-globalhotkeys - Ruby binding to define global hotkeys
ruby-gtk2 - GTK+ bindings for the Ruby language
ruby-gtk2-dbg - GTK+ bindings for the Ruby language (debugging symbols)
ruby-gtksourceview2 - GtkSourceView2 bindings for the Ruby language
ruby-gtksourceview2-dbg - GtkSourceView2 bindings for the Ruby language (debugging symbols)
unhide.rb - Forensic tool to find processes hidden by rootkits
vim-gtk - Vi IMproved - enhanced vi editor - with GTK2 GUI
ro@peanut:~/ruby/robots$
ro@peanut:~/ruby/robots$ sudo apt-get install libgtk2-ruby1.8 -y
[sudo] password for ro:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libgtk2-ruby1.8
0 upgraded, 1 newly installed, 0 to remove and 208 not upgraded.
Need to get 1,310 B of archives.
After this operation, 33.8 kB of additional disk space will be used.
Get:1
http://us.archive.ubuntu.com/ubuntu/ precise/universe libgtk2-ruby1.8 all 1.0.3-1build1 [1,310 B]
Fetched 1,310 B in 0s (14.9 kB/s)
Selecting previously unselected package libgtk2-ruby1.8.
(Reading database ... 368939 files and directories currently installed.)
Unpacking libgtk2-ruby1.8 (from .../libgtk2-ruby1.8_1.0.3-1build1_all.deb) ...
Setting up libgtk2-ruby1.8 (1.0.3-1build1) ...
ro@peanut:~/ruby/robots$ ruby rrobots.rb SittingDuck NervousDuck
./tkarena.rb:1:in `require': no such file to load -- tk (LoadError)
from ./tkarena.rb:1
from rrobots.rb:177:in `require'
from rrobots.rb:177:in `run_in_gui'
from rrobots.rb:303
ro@peanut:~/ruby/robots$
ro@peanut:~/ruby/robots$ apt-get install libatk1-ruby1.8 -y
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ro@peanut:~/ruby/robots$ sudo apt-get install libatk1-ruby1.8 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libatk1-ruby1.8
0 upgraded, 1 newly installed, 0 to remove and 208 not upgraded.
Need to get 1,310 B of archives.
After this operation, 33.8 kB of additional disk space will be used.
Get:1
http://us.archive.ubuntu.com/ubuntu/ precise/universe libatk1-ruby1.8 all 1.0.3-1build1 [1,310 B]
Fetched 1,310 B in 0s (14.1 kB/s)
Selecting previously unselected package libatk1-ruby1.8.
(Reading database ... 368942 files and directories currently installed.)
Unpacking libatk1-ruby1.8 (from .../libatk1-ruby1.8_1.0.3-1build1_all.deb) ...
Setting up libatk1-ruby1.8 (1.0.3-1build1) ...
ro@peanut:~/ruby/robots$ ruby rrobots.rb SittingDuck NervousDuck
./tkarena.rb:1:in `require': no such file to load -- tk (LoadError)
from ./tkarena.rb:1
from rrobots.rb:177:in `require'
from rrobots.rb:177:in `run_in_gui'
from rrobots.rb:303
ro@peanut:~/ruby/robots$
ro@peanut:~/ruby/robots$ sudo apt-get install libtcltk-ruby1.8 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libtcltk-ruby1.8
0 upgraded, 1 newly installed, 0 to remove and 208 not upgraded.
Need to get 2,837 kB of archives.
After this operation, 7,861 kB of additional disk space will be used.
Get:1
http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe libtcltk-ruby1.8 amd64 1.8.7.352-2ubuntu1.3 [2,837 kB]
Fetched 2,837 kB in 4s (644 kB/s)
Selecting previously unselected package libtcltk-ruby1.8.
(Reading database ... 368945 files and directories currently installed.)
Unpacking libtcltk-ruby1.8 (from .../libtcltk-ruby1.8_1.8.7.352-2ubuntu1.3_amd64.deb) ...
Setting up libtcltk-ruby1.8 (1.8.7.352-2ubuntu1.3) ...
ro@peanut:~/ruby/robots$ ruby rrobots.rb SittingDuck NervousDuck
^C/usr/lib/ruby/1.8/tk/timer.rb:40:in `callback': Interrupt
from /usr/lib/ruby/1.8/tk.rb:1646:in `mainloop'
from /usr/lib/ruby/1.8/tk.rb:1646:in `mainloop'
from ./tkarena.rb:174:in `run'
from rrobots.rb:189:in `run_in_gui'
from rrobots.rb:303
ro@peanut:~/ruby/robots$ #success