Linux requires ‘rubygems’ but Windows does not. Why? Can I fix this?… here is a solution to the problem.
Linux requires ‘rubygems’ but Windows does not. Why? Can I fix this?
I’m setting up a Linux development environment. After installing Ruby and RubyGems, I quickly discovered that I needed to require 'rubygems
‘ to use gems, which I didn’t need to do in Windows Vista. Is there anything I can do to fix this? Should I worry about this?
Solution
You may want to include rubygems
by default (especially since Ruby 1.9 now includes by default).
Edit your .bash_profile
or equivalent file and add export RUBYOPT=rubygems