Multiplay Labs

tech hits and tips from Multiplay

Archive for January 20th, 2009

Missing cattr_accessor on FreeBSD

with one comment

I’ve recently had trouble with a fresh Ruby install on a new FreeBSD box. Passenger wouldn’t start the app, and script/console gave the following warnings:

Loading development environment (Rails 2.2.2)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:394:NoMethodError: undefined method `cattr_accessor' for ActiveRecord::Base:Class
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:14:in `included':NameError: uninitialized constant ActiveSupport::Callbacks
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19:NoMethodError: undefined method `require_dependency' for main:Object

Doing rake -T threw up an iconv error. Simply installing the converters/ruby-iconv port fixed all the problems 🙂

Written by Boffbowsh

January 20th, 2009 at 9:46 pm

Posted in Code

Tagged with , ,