I have Windows XP Pro SP3. I have installed ruby 1.9.2p0 (2010-08-18
[i386-mingw32]). I’m trying to install rails 3 by entering “gem install
rails” on command prompt window (i.e. DOS window). Halfway through
installation I get the following:
ERROR: Error installing rails:
mail requires i18n (~> 0.4.1, runtime)
Don't know if this is useful for you but just fixed that yesterday.
I was upgrading from rails 3.0.0 to 3.0.3 and starting "rails server"
complained about needing i18n 0.4.1 but 0.5.0 being active so I
reinstalled all rubies with rvm, removed all cached gems, reinstalled
rails and removed i18n 0.5.0 to leave only 0.4.1 there and it finally
worked.
Used Debian squeeze 64 bit, rvm, ruby 1.9.2-head, rails 3.0.3
First, from the command prompt type "gem list" to see everything you
have installed.
Verify the name of the gem you want to uninstall. Then, from the
command prompt, type "gem uninstall i18n" You can substitute the name
of any gem for i18n, but I think you referenced that as your problem
gem. Then it asks you which version you want to uninstall with a
numbered list. Simply type the number of the version you want to
remove.
My guess: I had installed ruby and rails about two weeks apart. I
believe they were out of synch with each other, hence the problem. I
uninstalled all my ruby gems including rails and reinstalled them one
after the other and they all work now.
The long Answer:
I would like to thank all of you who responded and made sensible
suggestions. I tried almost all of them. Indeed, somehow I ended up with
two versions of i18n gem and by removing the more recent version and
rerunning the command “gem install rails” it did seem to complete the
installation without error. However, nothing would work properly.
Something’s worked yet others things did not. For example when I
generated a new rails project the directory contained only two files and
not the whole subdirectory structure that was supposed to be created.
The solution:
I successfully uninstalled ruby by using control panel’s ADD/REMOVE
option. Yet, my original ruby directory was still there which included
some subdirectory and files. I removed that directory as well. I
reinstalled Ruby and rails again. This time all went smoothly and
nothing went wrong. It seems everything is working now. My guess is that
since my installation of ruby and rails were two weeks apart, ruby gem
and rails gem were out of synch. So by removing my entire ruby related
gems/apps and reinstalling them one right after the other may have done
the trick.
Nothing to do with previous installations of ruby/rails/gems. I've
even gone to the lengths of creating a new VM and still get the same
problem. I've had no end of troubles trying to install ruby today,
something very screwy is going on. I specifically want that version
because its the one that activerecord-sqlserver-adapter gem currently
works with.