I was previously working on a Linux box for my Ruby on Rails application (almost a year old project) that runs on Rails 2.3.2, Rails 1.8.7 and RubyGems 1.3.2.

Everything was fine until I shifted to Windows lately and I need to look and reprogram the application on windows. As far as I know InstantRails run on 2.0 (by default) and lately updating the gems shows error. So thanks to Mr. Google for helping me out on this, here is what I did:

1) Update first the rubygems

gem update --system

This returns an error 

Updating RubyGemsERROR: While executing gem ...

(Gem::RemoteSourceException)HTTP Response 503 fetching http://gems.rubyforge.org/yaml

So what I did was to download the rubygems (*.gem) file directly, I pick up the one closest to my version event though there are some latest version. My reason was there are some gems that works depending on the ruby version that you have.

After that I installed it using the following command:

gem install rubygems-update --local

then update your rubygems by:


To check that you have successfullt installed it, type:

gem -v

Now, for rails gem. I did:

gem -install rails -v 2.3.2

Notice that I specify the version I wanted, the reason is similar to rubygems. Rails gems depend on the ruby version that was installed.

After that re-check also the version that you are using

rails -v

And that's it!

No comments :

Post a Comment