Closed zzak closed 13 years ago
Thank you for the information. I could reproduce this issue (I got the same error). I guess this issue is due to ruby 1.9.2p0. Because Green Shoes is working well with ruby-1.9.1-p378 on Linux (VirtualBox for Windows) now.
Although on my Windows 7, Green Shoes works with ruby 1.9.2p0...
Incorrect.
Not due to ruby 1.9.2p0, but rcairo 1.10.0.
I'm not sure this is a bug of rcairo or spec change, though.
Try the following at this time:
gem uninstall cairo
gem uninstall pango
gem uninstall gtk2
gem install cairo '=1.8.1'
gem install pango
gem install gtk2
Green Shoes will work well on Linux.
Sweet, I can get it to work now, but I have to adjust the require's a little.
# samples/sample1.rb
# require '../shoes'
require_relative '../shoes'
And the image is being included irregularly too (it doesn't show up from '../static/gshoes-icon.png'), is this because of the path change in 1.9.2?
I still get this error even when I install cairo 1.8.1, on OSX. :/
FWIW, I set up a Gemfile and used Bundler. Here's my Gemfile.lock.... http://gist.github.com/608281
Do any of those versions look wrong?
ash, can you post what verisons of everything you're using?
Windows 7:
I've compiled Ruby/GTK2 and rcairo by myself. Look at a note.
So, the following is not helpful, though.
C:\>ruby -v
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
C:\>gem list
*** LOCAL GEMS ***
gemcutter (0.6.1)
git (1.2.5)
jeweler (1.4.0)
json_pure (1.4.6)
minitest (1.6.0)
nokogiri (1.4.3.1 x86-mingw32)
rake (0.8.7)
rdoc (2.5.8)
rubyforge (2.0.4)
Ubuntu on Virtual Box for Windows 7:
Just only did sudo gem install cairo
and pango
and gtk2
. Look at a note.
ashbb:~$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
ashbb:~$ gem list
*** LOCAL GEMS ***
atk (0.20.1)
cairo (1.8.1)
gdkpixbuf (0.20.1)
glib2 (0.20.0)
green_shoes (0.0.1)
gtk2 (0.20.1)
minitest (1.6.0)
pango (0.20.1)
pkg-config (1.0.3)
rake (0.8.7)
rdoc (2.5.8)
This seems to be fixed with the latest version of the ruby-gtk2 bindings, 0.90.5
.
Wow, good news!
Environment: ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
Steps to reproduce:
ruby shoes.rb
doesn't return anything.Stack trace: