Cannot use Ruby gems
I am unable to require Ruby gems on my server. My hosting provider also has no idea as to why this happens.
Here's a minimal example:
I have tried adding the following in my bashrc:
With no succes. Is there anything I am missing?
$ ruby -r 'sinatra' my_script.rb
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- sinatra (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
I have tried adding the following in my bashrc:
export GEM_PATH=$GEM_PATH:/home/k16461ks/ruby/gems/gems/:/opt/cpanel/ea-ruby27/root/usr/share/gems/gems/
With no succes. Is there anything I am missing?
-
Well that sounds like it should just work at that point. Could you create a ticket with our team so we can check this out directly on that system? 0
Please sign in to leave a comment.
Comments
3 comments