From: "ryan.raaum@..." Date: 2006-10-19T02:50:20+09:00 Subject: Re: Ruby Open GL on OS X? Talha Syed wrote: > unknown wrote: > > On Thu, 19 Oct 2006, Talha Syed wrote: > > > >>> build the files from http://rubyforge.org/projects/ruby-opengl/ and > >> Pro530Rage:~/Desktop/gzz/trunk talhasyed$ rake --trace > >> {standard input}:unknown:FATAL:can't create output file: ext/gl/gl.o > >> rake aborted! > > > > this looks like your disk is full and/or you have a permissions error. > > try > > running that command by hand and seeing if there's any more info > > > > > > -a > > My bad, I posted the wrong log file in the post. I actually ran rake as > as sudo, and didn't get that error, but another one which said that I > was missing -lGL, which appears to be an OpenGL library. > > ------------------------------------------------- > Pro530Rage:~/Desktop/ruby-opengl/trunk talhasyed$ sudo rake --trace > (in /Users/talhasyed/Desktop/ruby-opengl/trunk) > ** Invoke default (first_time) > ** Invoke ext/gl/gl.bundle (first_time) > ** Invoke ext/gl/gl.o (first_time, not_needed) > ** Invoke ext/gl/gl.c (first_time, not_needed) > ** Invoke ext/common/rbogl.o (first_time, not_needed) > ** Invoke ext/common/rbogl.h (first_time, not_needed) > ** Invoke ext/common/rbogl.c (first_time, not_needed) > ** Execute ext/gl/gl.bundle > > ============================== linking ext/gl/gl.bundle > cc -bundle -lruby -framework GLUT -framework OpenGL -o ext/gl/gl.bundle > ext/gl/gl.o ext/common/rbogl.o -lGL > /usr/bin/ld: can't locate file for: -lGL > collect2: ld returned 1 exit status > rake aborted! > Command failed with status (1): [cc -bundle -lruby -framework GLUT > -framewo...] > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:722:in `sh' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:729:in `sh' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `sh' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `sh' > /Users/talhasyed/Desktop/ruby-opengl/trunk/rakefile:76 > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in > `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in > `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in > `invoke_prerequisites' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' > /usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 > /usr/local/bin/rake:18 > Pro530Rage:~/Desktop/ruby-opengl/trunk talhasyed$ > --------------------------------------------- > > FYI, when running Yoshi's extconf.rb, I get a similar notification about > missing -lGl and some other libraries. Any OpenGl users familiar with > this library, and how to get it? > > -- > Posted via http://www.ruby-forum.com/. You're going to (at the least) add /System/Library/Frameworks/OpenGL.framework/Libraries to your LIBPATH. I assume it's not too difficult to add this to the rake file, but I'm not really a rake master, so I don't have any great advice there other than open it up and see if there's someplace obvious to throw it in. You may need to make other changes ... but hopefully you can glean them out of this page: http://www.macdevcenter.com/pub/a/mac/2005/04/01/opengl.html Best, -r