From: Brandon Jones on
I have 2 gems installed: ruby-opengl and rubygame. Both gems contain
their own gl.rb file. When just ruby-opengl is installed, I can require
it fine:

> require 'opengl'
=> true

Once I install rubygame, I get the NameError

> require 'opengl'
NameError: uninitialized constant Rubygame
from
C:/ruby/lib/ruby/gems/1.9.1/gems/rubygame-2.6.2/lib/rubygame/gl.rb:35:in
`<top (required)>'
from
C:/ruby/lib/ruby/gems/1.9.1/gems/ruby-opengl-0.60.1-x86-mswin32/lib/opengl.rb:23:in
`require'
from
C:/ruby/lib/ruby/gems/1.9.1/gems/ruby-opengl-0.60.1-x86-mswin32/lib/opengl.rb:23:in
`<top (required)>'
from (irb):1:in `require'
from (irb):1
from C:/ruby/bin/irb.bat:20:in `<main>'

Apparently the ruby-opengl gem is calling require 'gl' and it's picking
up the one in rubygame. Is this fixable on my part (gem load path)? Or
will some change be required in one/both installed gems?
--
Posted via http://www.ruby-forum.com/.

From: Brandon Jones on
I did some digging and it turns out that renaming rubygame's file fixed
the problem. ruby-opengl was trying to require the gl.so file.
--
Posted via http://www.ruby-forum.com/.