From: altern Date: 2005-05-17T02:15:15+09:00 Subject: Re: compiling opengl hi i was actually using the distro from http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/139863 where those files are next to the extconf.rb when i got the error Ordenador-de-r2d2:/Volumes/data/software/ruby/opengl-0.32f r2d2$ ruby extconf.rb extconf.rb:36: undefined method `+' for nil (NameError) thanks Bill Kelly wrote: > Hi, > > From: "altern" > >>This is the second one with opengl-0.1.32f > > [...] > >>glu.c:8:19: GL/gl.h: No such file or directory >>glu.c:9:20: GL/glu.h: No such file or directory > > > I found that on my OS X system, files like gl.h and > glu.h were buried in some obscure directory, like: > > /Developer/SDKs/MacOSX10.2.8.sdk/System/Library/blah/blah > > so i made a GL directory locally (right next to > extconf.rb) and copied the following files there: > > gl.h > glu.h > glut.h > > Hope this helps.... BTW my ruby version on OS X is: > > ruby 1.8.2 (2004-12-24) [powerpc-darwin7.6.0] > > > Regards, > > Bill > > > > -- enrike