John’s NOTES

John Tsekhmistro life notes

Solution for annoying problem with rails 2.3.2 on FreeBSD

May30

Today deploying my rails application on FreeBSD server with just installed RoR I ‘ve got some completely unexpected errors.

>$ruby script/console

>Loading development environment (Rails 2.3.2)

>/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/i18n_interpolation_deprecation.rb:23:NoMethodError: undefined method `alias_method_chain’ for I18n::Backend::Simple:Class

Googleing shows that many people gets in the same trouble  - nonworking fresh install of rails on FreeBSD ( probably this problem belongs to other BSD or Linux). (http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/342f99c546440fff/559e5fa694476b0c?lnk=raot)

So if you see this error when trying to execute `rails` command:

>$rails helloappl

>undefined method camelize for app:String

Don’t panic. Everyting ok and  solution is pretty simple. In fact its not a trouble with rails, but  there is a missed unmentioned dependency

all you need to do:

>$cd /usr/ports/converters/ruby-iconv

>$make install clean

Hope this post will help somebody to don’t waste time on sort out the problem.

posted under Uncategorized
7 Comments to

“Solution for annoying problem with rails 2.3.2 on FreeBSD”

  1. On June 1st, 2009 at 10:45 pm oliver stocks Says:

    > Hope this post will help somebody to don’t waste time on sort out the
    > problem.

    Helped me ! I followed this tutorial http://solisoft.net/?p=21 and got that error, a little iconv and sorted :D

    Thanks man.
    Oliver

  2. On June 2nd, 2009 at 8:05 am Matty Ronald Says:

    Hi John,

    I’m using HP-UX 11.23 ia64 and facing same problem with Rails.
    Because of platform difference i’m unable to implemet your solution.

    Can you please please elaborate what dependency is there on iconv and will it resolve if i install iconv library or i will have to rebuild Ruby with iconv??

  3. On June 2nd, 2009 at 10:01 am admin Says:

    Hi, Rails is using ruby-iconv library to convert strings. I’ve never used HP-UX platform but yes I ‘m sure that you need this library (ruby-iconv) installed to setting up working rails environment.

  4. On June 4th, 2009 at 6:10 am AlekSi Says:

    Thanks for tip! Solved my problem too.

  5. On August 10th, 2009 at 1:54 am Victor Says:

    Thanks. This solve my error on OpenBSD 4.5. BSD Rocks!

  6. On March 21st, 2010 at 11:50 pm Wim Says:

    Well, you certainly saved some of my time. Thanks for the tip!

  7. On July 11th, 2010 at 7:17 am uday Says:

    Thanks a lot. This fixed the problem in my rails installation on FreeBSD.

Email will not be published

Website example

Your Comment: