Ruby: ruby-opengl gem not working

Hello everybody

I have an NVIDIA 6200 card under OpenSuSE 11.1, drivers and all installed glxgears giving 2000-3000 fps on an old Athlon 64. I installed ruby gems and used (as root) the command

# gem install ruby-opengl

to get and install openGL bindings for ruby. The command completes with no complaints, everything goes smoothly. Then under a normal user I am trying to run some of the Redbook examples, found under

> /usr/lib64/ruby/gems/1.8/gems/ruby-opengl-0.60.1/examples

without success. They fail with the error that the requested openGL isual is not available.

Any idea how to get this one flying?

Regards,

George

To be more precise:

# cd /usr/lib64/ruby/gems/1.8/gems/ruby-opengl-0.60.1/examples/RedBook
# ruby aapoly.rb

yields:

aapoly.rb:42:in `require': no such file to load -- opengl (LoadError)

modifying the code as follows:

# diff aapoly.rb aapoly_mod.rb
41a42,43
> require 'rubygems'
> gem 'ruby-opengl'

yields

ruby aapoly_mod.rb
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

What is going wrong?

Regards,

George