I am new to ruby. When I type any thing related to gem, error below will happen. why causes it and how to solve the problem? Thanks!
Error loading RubyGems
To whoever having this problem with rbenv, I solved it reinstalling openssl and upgrading rbenv, then reinstalling ruby:
rbenv
brew reinstall openssl brew upgrade ruby-build rbenv rbenv install 2.2.10 # or whatever version you're using it