Ruby gems not working under openSUSE

With ruby 1.8.7-p72 and rubygems from the openSUSE repositories I install ruby-opengl as follows:

# gem install ruby-opengl

the installation completes without problems, however none of the examples work. All of them fail with

freeglut (aapoly_mod.rb):  ERROR:  Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  25
  Current serial number in output stream:  28

The same configuration and gem installation as above works under ubuntu.

Also if I download ruby 1.9.1-p129 from Download Ruby, compile it and install the gem as above it works. However the actual software I want to run sadly requires 1.8.7

So what gives? Anybody having the same problem? Any solution around?

Thanks in advance for any reply :slight_smile:

Regards,

George

Hi,

I’ve had a similar problem updating the rubygems and rake packages solved the problem for me. As far as I can remember there was a general bug in ruby gems. I’ve used Index of /repositories/openSUSE:/Tools/openSUSE_11.1 to update my ruby gems (I’ve initially wanted some other tools from there but I’ve also taken the ruby updates :wink: )

Hope this helps

Hello Monex

I did as you suggested, to no avail. The freeGLUT problem still persists.
as mentioned above.:frowning:

Regards,

George

Hi,

I have no more ideas how to fix this, but I found the following link Problems using ruby and opengl - Ruby Forum which deals with the same problem, so maybe you will find the answer there.

Hope this helps