rubyomr-preview / ruby

The Ruby+OMR Preview
Other
68 stars 9 forks source link

Ruby Gems #96

Closed efferifick closed 7 years ago

efferifick commented 7 years ago

Hi,

I've been running Ruby with OMR always with the --disable-gems flag. I'm trying to run a script that requires some ruby gems. However, when I attempt to run this ruby script without the --disable-gems flag I get the following error message:

$ \
OMR_JIT_OPTIONS=-Xjit:count=1,tracefull,log=logname,optlevel=warm,verbose \
LD_LIBRARY_PATH=".." \
../ruby snake.rb
<internal:gem_prelude>:4:in `require': cannot load such file -- rubygems.rb (LoadError)
    from <internal:gem_prelude>:4:in `<internal:gem_prelude>'

I was wondering if this is a known issue. Thanks.

mgaudet commented 7 years ago

This is more of a known issue when developing Ruby; Without make installing ruby, you can't use gems.

See this bug.

A word of caution however: If you do install Ruby+OMR, it will preferentially load the JIT from the install directory over the local directory, even with LD_LIRBARY_PATH set. This can be crazy confusing.

efferifick commented 7 years ago

Awesome! Thanks!