Saturday, February 6, 2016

Installing gtk3 on Linux Mint 17.2

1. Check my ruby installation (Looks good)

$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]

2. Check if gtk3 is already installed (Not installed yet)

$ gem list gtk3

*** LOCAL GEMS ***

(None)

3. Check available gtk3 gems (Found one)

$ gem list gtk3 --remote

*** REMOTE GEMS ***

gtk3 (3.0.7 ruby x64-mingw32 x86-mingw32)
gtk3app (1.5.1)
gtk3assist (0.0.9)
gtk3webtable (0.0.0)

4. Install gtk3

$ gem install gtk3
Fetching...
11 gems installed

5. Test the installation (Works!)

$ irb
irb(main):001:0> require 'gtk3'  => True
irb(main):002:0> win = Gtk::Window.new
irb(main):003:0> win.signal_connect("destroy") { Gtk::main_quit }
irb(main):004:0> win.show_all
irb(main):005:0> Gtk.main      # see below

6. Result (An empty window)


7. Conclusion

Installing gtk3 on my Mint 17.2 (with Ruby 2.2) was easy and flawless.

No comments:

Post a Comment