Jesús Gabriel y Galán
10/12/2007 10:23:00 PM
On 10/12/07, Sy Yoon <fold3mani@yahoo.com> wrote:
> Julian Raschke wrote:
> > Hi,
> >
> >> /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?
> >
> > I think TextMate needs write access to files to run them (bug?). I had
> > the very same problem yesterday, even with a 'properly' installed
> > TextMate, and I ended up copying the example .rb files to the Desktop.
> > Could run them from there without problems.
> >
> > Julian
>
> Ok, I copied an exmple rb file to the Desktop where TextMate is, but
> still get:
>
> LoadError: Failed to lookup Init function
> /usr/local/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1/lib/gl.bundle
>
> method require in custom_require.rb at line 32
> at top level in gl-test.rb at line 46
>
> ???
>
> BTW, my TextMate is a trial version.
Don't know if it might be the same problem, but just in case. I was
trying to install opengl in Ubuntu, but couldn't make it work, until
someone pointed to me that opengl.0.40.1 required version 1.9+ of
rubygems. So maybe you could try to upgrade to version 1.9 to see if
that's the problem?
In Ubuntu:
sudo gem update --system
Don't know how to do it in Mac OS X, though.
Hope this helps,
Jesus.