From: Gregory Seidman Date: 2007-09-20T22:38:28+09:00 Subject: Re: ruby-opengl on Mac OS X On Thu, Sep 20, 2007 at 01:31:38PM +0900, Robert Poor wrote: > All: Pardon this noobish question. I'm trying to bring up ruby-opengl > on my Mac OS X (v 10.4.10). > > I ran "sudo gem install ruby-opengl" without any trouble -- gem > announced that it was loading ruby-opengl 0.40.1 as well as mkrf-0.2.2 > -- so far so good! I poked around and found that it had installed the > following file (among others): > > /usr/local/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1/lib/opengl.rb > > This looks hopeful. In irb, I typed: > > irb(main):106:0> require 'opengl' > > which resulted in: > > LoadError: no such file to load -- opengl > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from (irb):106 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:399 > > My question: My guess is this is a problem with paths. What is the > cleanest remedy? Do I extend my path, make symbolic links, or move the > opengl files? I think you want to require 'gl' rather than 'opengl'. With a working install of ruby-opengl on 10.4.10 I have the following in a working Ruby script: require 'rubygems' require 'gl' require 'glu' require 'glut' You don't need GLU or GLUT unless you're using them, mind you. > Thanks. > - ff --Greg