Topic: iconv/localization generator error

Hi guys,

We're in the process of moving an application to it's destination server but we're running into a few issues. The application uses the localization_generator gem, as a dependency of the salted_login_generator gem. We froze the gems before deploying (rake rails:freeze:gems) and installed everything we thought we'd need on the new server but still this error pops up:

# mongrel_rails start -p 8000
** Starting Mongrel listening at 0.0.0.0:8000
** Starting Rails with development environment...
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- iconv (MissingSourceFile)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/local/www/vhosts/somedir/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /usr/local/www/vhosts/somedir/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /usr/local/www/vhosts/somedir/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /usr/local/www/vhosts/somedir/config/../lib/localization.rb:1
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/local/www/vhosts/somedir/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /usr/local/www/vhosts/somedir/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
         ... 8 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:83:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
        from /usr/local/bin/mongrel_rails:16

That sounds to me like it's missing a gem, but as far as I can tell there is no iconv gem and even if there were it should've been frozen in with everything else shouldn't it?

-- marsvin

Last edited by marsvin (2007-03-23 11:22:05)

Re: iconv/localization generator error

Noone have any ideas then? Can someone confirm at least whether the "gem_original_require" error means it is missing a gem specifically or could it be any kind of file?

Re: iconv/localization generator error

Hi guys,

In case anyone else runs into this problem, it was a ruby dependecy that was missing. I installed it using aptitude install ruby-iconv and that was it. So it wasn't a problem with the gem itself.