From: Sy Yoon Date: 2007-10-12T16:18:49+09:00 Subject: Re: ruby-opengl on Mac OS X Fearless Fool wrote: > Gregory Seidman wrote: >> ... >> 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. >> >> --Greg > > Greg: > > Whoo hoo! It Just Works. Many thanks. > > - Rob Hello, Greg and Rob, Sorry for my newbie question in advance. I am in very similar situation as Rob was in: I installed ruby-opengl-0.40.1 in OS X(v. 10.4.10), and found 'opengl.rb' and others in /usr/local/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1/lib/opengl.rb But when I do irb(main):003:0> require 'gl' I get the following error: LoadError: Failed to lookup Init function ./gl.bundle from ./gl.bundle from (irb):2 (Well, 'opengl.rb' file contains line "require 'gl'" anyway, but when I do irb(main):003:0> require 'opengl', I receive: LoadError: Failed to lookup Init function ./gl.bundle from ./gl.bundle from ./opengl.rb:16 from (irb):1:in `require' from (irb):1 ) I also tried to test run 'plane.rb' file located in /usr/local/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1/lib/examples using TextMate and got the following: /Volumes/TextMate1.5.5/TextMate.app/Contents/SharedSupport/Support/lib/ scriptmate.rb:107:in `initialize': Permission denied - /usr/local/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1/examples/plane.rb (Errno::EACCES) from /Volumes/TextMate What am I doing wrong? Sy -- Posted via http://www.ruby-forum.com/.