Eclipse doesnt execute, Ruby 2.2.0 with rvm and third party gem

Hi,

I wish to use opengl with Ruby 2.2.0 and Eclipse Kepler with dltk
installed. My System is
Linux Mint LDME. I use rvm.

rvm info prints:m@m:~$ rvm inforuby-2.2.0: system: uname: "Linux m 3.11-2-48 - Pastebin.com

I can run the opengl examples from the terminal.

In Eclipse the path to the interpreter executable is set to
/home/m/.rvm/rubies/ruby-2.2.0/bin/ruby

Eclipse runs:

require ‘mathn’
print ‘hallo’

but fails to run:

require ‘opengl’

with this output:/home/m/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel - Pastebin.com

How do i set up Eclipse to find my gems?

Regards
Michael

Problem Solved. I added
/home/m/.rvm/gems/ruby-2.2.0/gems/opengl-0.9.2/lib/ as external Source
folder.

This solution seems like a workaround. Is there a better way to solve
this problem for all gems and projects maybe?