Error installing Ruby on Rails

I followed the Ruby on Rails guide in documentation, I installed all the dependencies but I am getting an error when I try to install it. This is the error I get:

Updating Ruby Gems to latest version from 0.9.2 .. .. Gems update failed : ERROR: While executing gem ... (NoMethodError) private method `scan' called for # Updating RubyGems...

Then when I try to update Ruby Gems manually, i get this:

gem update --system

Updating RubyGems... ERROR: While executing gem ... (NoMethodError) private method `scan' called for #

I am using Virtualmin Pro, the EC2 instance. I recently applied the Virtualmin update to Rails 2.3.3.

Thank you

Status: 
Closed (fixed)

Comments

You can close this support ticket, I fixed it.

I had to remove the source_cache file from the Gem Path, I guess it was somehow corrupted. It was recreated after I ran "gem update" and then I was able to do a "gem update --system" to update Ruby Gems.

Automatically closed -- issue fixed for 2 weeks with no activity.