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:http://pastebin.com/paaaj0sA

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:http://pastebin.com/31ZnB7ka

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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs