Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no such file to load -- glib2.so #81

Open
Skyblues opened this issue Nov 16, 2013 · 4 comments
Open

no such file to load -- glib2.so #81

Skyblues opened this issue Nov 16, 2013 · 4 comments

Comments

@Skyblues
Copy link

Greetings,

I was trying out Red Shoes but discovered that I can not "require" a few gems I will need for my programs (serialport, prawn) so I decided to try green_shoes. I installed green_shoes and when I ran the 'welcome' script, I get the following error:

"no such file to load -- glib2.so"

Here is the script I am running:
require 'green_shoes'

Shoes.app do
para "Welcome to Shoes"
end

I am using the following:
Windows 7
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
green_shoes (1.1.374)
gtk2 (2.0.2 x86-mingw32)

Here is the entire error:
no such file to load -- glib2.so

D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/glib2-2.0.2-x86-mingw32/lib/glib2.rb:101:in rescue in <top (required)>' D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/glib2-2.0.2-x86-mingw32/lib/glib2.rb:97:in<top (required)>'
D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/pango-2.0.2-x86-mingw32/lib/pango.rb:9:in <top (required)>' D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/green_shoes.rb:4:in<top (required)>'
D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:57:in require' D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:57:inrescue in require'
D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in require' G:/scripts/shoes/test-3.rb:1:in

'
D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': no such file to load -- glib2.so (LoadError) from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/glib2-2.0.2-x86-mingw32/lib/glib2.rb:101:in rescue in <top (required)>' from D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/glib2-2.0.2-x86-mingw32/lib/glib2.rb:97:in<top (required)>'
from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/pango-2.0.2-x86-mingw32/lib/pango.rb:9:in <top (required)>' from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from D:/Development/Ruby192/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/green_shoes.rb:4:in<top (required)>'
from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:57:in require' from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:57:inrescue in require'
from D:/Development/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in require' from G:/shoes/test-3.rb:1:in'

Thank you for the help,
Jim

@ashbb
Copy link
Owner

ashbb commented Nov 17, 2013

Hi @Skyblues,

Umm,... strange. How did you install Green Shoes?

If you installed Green Shoes by gem install green_shoes, all runtime dependencies should be installed...

The following is the list of gems on my Windows 7.
GTK2 requires all of them.

C:\tmp>ruby -v
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]
C:\tmp>gem list
*** LOCAL GEMS ***
atk (2.0.2 x86-mingw32)
bigdecimal (1.1.0)
cairo (1.12.6 x86-mingw32)
gdk_pixbuf2 (2.0.2 x86-mingw32)
glib2 (2.0.2 x86-mingw32)
green_shoes (1.1.374)
gtk2 (2.0.2 x86-mingw32)
io-console (0.3)
json (1.5.5)
minitest (2.5.1)
pango (2.0.2 x86-mingw32)
pkg-config (1.1.4)
rake (0.9.2.2)
rdoc (3.9.5)

@Skyblues
Copy link
Author

Hi ashbb,

Thanks for replying,

I installed using gem install green_shoes. I checked all the gems you mentioned and the following two were missing:

bigdecimal was missing
so I installed bigdecimal (1.2.1)

io-console was missing but, apparently, it needs ruby 1.9.3
I can't use ruby 1.9.3 (some of my other critical gems don't work with 1.9.3). I tried a 1.9.3 version a while back and if I remember correctly, it was the 'roo' gem that didn't work and I need that one for a program I wrote that compares a spreadheet with an MS Access database so I can't live without it.

I also need 'win32ole', 'serialport', 'prawn'.

I have been wanting to wrap some of my Ruby programs in a GUI wrapper. I tried wxRuby and although it was nice, when I used OCRA to package it up, it was waaaaaay too slow. So, I tried Shoes which I really liked but, no dice, I can't use the gems I need mentioned above. So I wanted to try green_shoes so I could use the gems I need and package it up with OCRA so would really like to find a solution. Is there a way I can run two versions of Ruby on my machine?

The rest were there:
atk (2.0.2 x86-mingw32)
cairo (1.12.6 x86-mingw32)
gdk_pixbuf2 (2.0.2 x86-mingw32)
glib2 (2.0.2 x86-mingw32)
green_shoes (1.1.374)
gtk2 (2.0.2 x86-mingw32)
json (1.7.7)
minitest (4.7.0, 1.6.0)
pango (2.0.2 x86-mingw32)
pkg-config (1.1.4)
rake (10.0.4, 0.8.7)
rdoc (3.12, 2.5.8)

Thank you, I really appreciate your help,
Jim

@Skyblues
Copy link
Author

Ok, just as an experiment, I installed ruby-1.9.3-p448, green_shoes and my other needed gems and all seems to works fine. The problem is (and now I remember why I couldn't use ruby-1.9.3) OCRA won't work with ruby-1.9.3. At the end of the OCRA compile, I get the following error:

"lzma.exe is not a valid Win32 application."

Any suggestions? I really want to get this to work.

Thanks,
Jim

@ashbb
Copy link
Owner

ashbb commented Nov 18, 2013

Hi Jim,

I found my old environment with ruby 1.9.2.

C:\tmp>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
C:\tmp>gem list
*** LOCAL GEMS ***
atk (1.0.4 x86-mingw32)
bundler (1.0.18)
cairo (1.10.1 x86-mingw32)
gdk_pixbuf2 (1.0.4 x86-mingw32)
git (1.2.5)
glib2 (1.0.4 x86-mingw32)
green_shoes (1.0.322)
gtk2 (1.0.4 x86-mingw32)
jeweler (1.6.4)
minitest (1.6.0)
pango (1.0.4 x86-mingw32)
pkg-config (1.1.2)
rake (0.8.7)
rdoc (2.5.8)
rubygems-update (1.8.10)

I've not tried the latest version of Green Shoes, though.
Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants