Mark Smith
2005-Mar-23 14:43 UTC
Rails install problem (noob) - no such file to load -- iconv (LoadError) - with solution
Hi I had a (user) problem installing Rails with the current one-click Windows install of Ruby and I thought I''d document the solution here. Sorry in advance if I''ve duplicated information but a quick look through the mailing list archives didn''t offer a solution. The instructions at download.rubyonrails.com include 3 steps: Get hold of RubyGems 0.8.8 (or higher) gem install rails (accept all the dependencies) rails /complete/path/to/new/railsapp My problem was failing to read the install instructions properly. :-) Noobs like me might make the assumption that the current build of Ruby Windows Installer would install the latest version of RubyGems, making the first step redundant. It does not (version 0.8.3 is the default) and this leads to the error stack shown at the bottom of this message. You can see that the installed version of RubyGems is 0.8.3 by doing gem environment To get the latest gems installed you need to do the following gem install rubygems update_rubygems The first command downloads the latest 0.8.8 release of RubyGems, while the second actually installs it. You can check if it worked by doing gem environment again. After that, step two works like a champ. Now for those OnLAMP tutorials.. :-) Regards Mark Smith Information Patterns Error message included below for Googlers -------------------- C:\Documents and Settings\Administrator>gem install rails C:\Documents and Settings\Administrator>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install rails Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' Updating Gem source index for: gems.rubyforge.org Install required dependency rake? [Yn] y Install required dependency activesupport? [Yn] y Install required dependency activerecord? [Yn] y Install required dependency actionpack? [Yn] y Install required dependency actionmailer? [Yn] y Install required dependency actionwebservice? [Yn] y c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__'': No such file to load -- iconv (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r equire'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.2/lib/active_suppo rt/dependencies.rb:197:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.0/lib/action_mailer /vendor/tmail/quoting.rb:1 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r equire__'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r equire'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.2/lib/active_suppo rt/dependencies.rb:197:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.0/lib/action_mailer /vendor/tmail/mail.rb:18 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r equire__'' ... 20 levels... from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in `proce ss_args'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run'' from c:/ruby/bin/gem:11
bryce benton
2005-Mar-23 15:27 UTC
Re: Rails install problem (noob) - no such file to load -- iconv (LoadError) - with solution
Thank you very much for documenting this. I had the same problem, and your solution was exactly what I needed. --bryce On Wed, 23 Mar 2005 14:43:01 GMT, Mark Smith <mark.smith-Y3wenZVVjgpmvIw80TeVig@public.gmane.org> wrote:> Hi > > I had a (user) problem installing Rails with the current one-click Windows > install of Ruby and I thought I''d document the solution here. Sorry in advance > if I''ve duplicated information but a quick look through the mailing list > archives didn''t offer a solution. > > The instructions at download.rubyonrails.com include 3 steps: > > Get hold of RubyGems 0.8.8 (or higher) > gem install rails (accept all the dependencies) > rails /complete/path/to/new/railsapp > > My problem was failing to read the install instructions properly. :-) Noobs > like me might make the assumption that the current build of Ruby Windows > Installer would install the latest version of RubyGems, making the first step > redundant. It does not (version 0.8.3 is the default) and this leads to the > error stack shown at the bottom of this message. > > You can see that the installed version of RubyGems is 0.8.3 by doing > > gem environment > > To get the latest gems installed you need to do the following > > gem install rubygems > > update_rubygems > > The first command downloads the latest 0.8.8 release of RubyGems, while the > second actually installs it. > > You can check if it worked by doing gem environment again. > > After that, step two works like a champ. > > Now for those OnLAMP tutorials.. :-) > > Regards > Mark Smith > Information Patterns > > Error message included below for Googlers -------------------- > > C:\Documents and Settings\Administrator>gem install rails > > C:\Documents and Settings\Administrator>"c:\ruby\bin\ruby.exe" > "c:\ruby\bin\gem" > install rails > Attempting local installation of ''rails'' > Local gem file not found: rails*.gem > Attempting remote installation of ''rails'' > Updating Gem source index for: gems.rubyforge.org > Install required dependency rake? [Yn] y > Install required dependency activesupport? [Yn] y > Install required dependency activerecord? [Yn] y > Install required dependency actionpack? [Yn] y > Install required dependency actionmailer? [Yn] y > Install required dependency actionwebservice? [Yn] y > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__'': > No > such file to load -- iconv (LoadError) > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > `r > equire'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.2/lib/active_suppo > rt/dependencies.rb:197:in `require'' > from > c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.0/lib/action_mailer > /vendor/tmail/quoting.rb:1 > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > `r > equire__'' > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > `r > equire'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.2/lib/active_suppo > rt/dependencies.rb:197:in `require'' > from > c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.0/lib/action_mailer > /vendor/tmail/mail.rb:18 > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > `r > equire__'' > ... 20 levels... > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in > `proce > ss_args'' > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run'' > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run'' > from c:/ruby/bin/gem:11 > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > lists.rubyonrails.org/mailman/listinfo/rails >
Jim Weirich
2005-Mar-23 15:54 UTC
Re: Rails install problem (noob) - no such file to load --iconv (LoadError) - with solution
Mark Smith said:> Hi > > I had a (user) problem installing Rails with the current one-click Windows > install of Ruby and I thought I''d document the solution here. Sorry in > advance > if I''ve duplicated information but a quick look through the mailing list > archives didn''t offer a solution. > > The instructions at download.rubyonrails.com include 3 steps: > > Get hold of RubyGems 0.8.8 (or higher) > gem install rails (accept all the dependencies) > rails /complete/path/to/new/railsapp > > My problem was failing to read the install instructions properly. :-) > Noobs > like me might make the assumption that the current build of Ruby Windows > Installer would install the latest version of RubyGems, making the first > step > redundant. It does not (version 0.8.3 is the default) and this leads to > the > error stack shown at the bottom of this message.Just a note: Although RubyGems 0.8.8 tends to help the situation, I''ve heard reports that some systems still exhibit the problem with version 0.8.8. RubyGems 0.8.9 will directly address this problem and will be available RSN (I''m aiming to make the next release of the one-click installer). We are testing the new version now. If you /still/ have the iconv problem after you upgrade as instructed here, please contact me. I would like you to try the CVS version of RubyGems. -- -- Jim Weirich jim-Fxty1mrVU9GlFc2d6oM/ew@public.gmane.org onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)