On Dec 6, 3:34 am, Ashutosh [email protected] wrote:
I tried copying gems directory from my Ruby 1.8.6 directory to Ruby
1.9 but did not work.
Any suggestions?
Open a console window and do:
SET RUBYOPT=
before calling your new ruby installation
This happens because you have One-Click Installer that was set to add
rubygems by default to your ruby environment each time the VM is
loaded.
I often do manually “require ‘rubygems’” at the top of my scripts if
they need certain gems, but often they don’t.
You can also remove the environment variable permanently from Control
Panel -> System -> Advanced -> Environment Variables.
Keep in mind that if you remove it, you will need do the require thing
each time you need to use a gem (this is for cases outside mongrel or
rails that are gem-friendly).
HTH,
Luis