This is where the ‘extra features’ (err, bugs) for the 0.11 upgrade are discussed and solved!
You will need to clear out your sessions. For information on how to do this, check here: TipsAndTricks
When you run gem install rails, you get this problem, or something like it.
>gem install rails
tempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
.
.
e:/Ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__': No such file to load -- iconv (LoadError)
from e:/Ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require' from e:/Ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.2/lib/
active_support/dependencies.rb:197:in `require' from
.
.
from e:/Ruby/bin/gem:11
The problem, is that iconv (a library to convert character sets) is missing from the default windows installation of Ruby. So, you’ll have to install it.
Solution one: upgrade gems
Some users reported that upgrading your gems will fix the problem
Solution two: download iconv
Download iconv from Sourceforge here:
http://prdownloads.sourceforge.net/gettext/libiconv-1.9.1.bin.woe32.zip?download
and extract the .dll to your Ruby directory (e.g. c:\ruby)
Then, you’ll need to download ruby from
http://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.2-i386-mswin32.zip
And extract the iconv.so to your ruby directory also.
*iconv.so goes to lib\ruby\1.8\i386-mswin32\iconv.so
If you get a version mismatch error, try the iconv files from
http://www.dll-files.com/dllindex/dll-files.shtml?iconv
Finally
You’ll need to run the update rails again, and if running, restart your web server (apache, lighttpd, WEBrick), whatever is running Rails.
If it still doesn’t work, you’ll need to completely reformat your hard drive and reinstall windows. . just kidding! :P If it still doesn’t work (you have the .so file and the .dll file) then extract the ruby-1.8.2-i386 zip file to your ruby directory to copy all the missing files. This might break your ruby, but beggars can’t be choosers. It worked for me.
More resources
Most of this information came from the Rails mailing list, or various sites. If these solutions don’t work for you, try reading it from the horse’s mouth.. err..
http://marc.theaimsgroup.com/?l=ruby-talk&m=110842201106045&w=2
http://lists.gnupg.org/pipermail/gnupg-users/2004-October/023586.html