Getting green_shoes up and running

I am trying to write a GUI application using the green_shoes gem and am
encountering an error when trying to require the gem.

The contents of my file are simply:


require ‘green_shoes’


And this is the error that is printed to the terminal:


C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_requi
re.rb:36:in require': cannot load such file -- cairo.so (LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems /custom_require.rb:36:inrequire’
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/cairo-1.
12.9-x86-mingw32/lib/cairo.rb:46:in rescue in <top (requ ired)>' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/cairo-1. 12.9-x86-mingw32/lib/cairo.rb:42:in<top (required)>’
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems
/custom_require.rb:36:in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems /custom_require.rb:36:inrequire’
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/green_sh
oes-1.1.374/lib/green_shoes.rb:3:in <top (required)>' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems /custom_require.rb:60:inrequire’
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems
/custom_require.rb:60:in rescue in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems /custom_require.rb:35:inrequire’
from experiments.rb:1:in `’


Any suggestions as to what I need to change?

When I originally installed green_shoes it said that cairo and 8 other
gems were installed, too.

Thanks so much

C:/Ruby193/lib/ruby/site_ruby/1.9.1/

Step 1: Installing Green Shoes
At first, install Ruby. On Windows, visit the site of RubyInstaller for
Windows to download the latest RubyInstaller 1.9.2 or 1.9.3.

1.9.1 != 1.9.2 or 1.9.3

It’s working now! Thank you very much.

7stud – wrote in post #1146212:

C:/Ruby193/lib/ruby/site_ruby/1.9.1/

Step 1: Installing Green Shoes
At first, install Ruby. On Windows, visit the site of RubyInstaller for
Windows to download the latest RubyInstaller 1.9.2 or 1.9.3.

1.9.1 != 1.9.2 or 1.9.3

Is it a problem with cairo??

I installed ruby with Ruby 1.9.3-p545 and then went to command prompt
and typed “gem install green_shoes”.
Successfully installed pkg-config-1.1.5
Successfully installed cairo-1.12.9-x86-mingw32
Successfully installed glib2-2.2.0-x86-mingw32
Successfully installed atk-2.2.0-x86-mingw32
Successfully installed pango-2.2.0-x86-mingw32
Successfully installed gdk_pixbuf2-2.2.0-x86-mingw32
Successfully installed gtk2-2.2.0-x86-mingw32
Successfully installed green_shoes-1.1.374
8 gems installed
now when i tried to run the basic test code it gives me same error

C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require’:
cannot load such file – cairo.so (LoadError)

the gem gets loaded in site_ruby/1.9… what should i do. Help
needed!!!

Conor Mr wrote in post #1146215:

It’s working now! Thank you very much.

Can you please say what you changed to get it working. I am getting the
exact same error.

Chidambaram Muthappan wrote in post #1147627:

Conor Mr wrote in post #1146215:

It’s working now! Thank you very much.

Can you please say what you changed to get it working. I am getting the
exact same error.

Mr. Muthappan,

I think the issue was that Cairo doesn’t support Ruby 1.9.3 anymore. If
I’m remembering correctly, I uninstalled Ruby 1.9.3 and installing Ruby
2.0.0 instead solved the problem.

Here is a link to the installer for Ruby 2.0.0.
http://rubyinstaller.org/downloads/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs