Solution for annoying problem with rails 2.3.2 on FreeBSD
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.
> 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
Thanks man.
Oliver
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??
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.
Thanks for tip! Solved my problem too.
Thanks. This solve my error on OpenBSD 4.5. BSD Rocks!
Well, you certainly saved some of my time. Thanks for the tip!
Thanks a lot. This fixed the problem in my rails installation on FreeBSD.