chillibear.com

FreeBSD 7 and Rails: undefined method `camelize' for "app":String

Okay, thought it was about time I had Rails installed on one of my FreeBSD boxes. So off to ports I trundle, two seconds later and I have Rails installed. Right time for a quick test app:

[]$ ruby -v
ruby 1.8.7 (2009-04-08 patchlevel 160) [amd64-freebsd7]
[]$ rails -v
Rails 2.3.4
[]$ gem -v
1.3.5
[]$ rails test
undefined method `camelize' for "app":String

What - an error! But this is FreeBSD, everything just works! (well mostly). Okay looks rather like someone has missed out a dependency in the port. It would appear that Rails depends on the iconv libs: http://www.freebsd.org/cgi/cvsweb.cgi/ports/converters/ruby-iconv/ so a:

cd /usr/ports/convertors/ruby-iconv
make install clean

is required, then Rails works.

Written on 26 Sep 2009 and categorised in FreeBSD and Rails, tagged as iconv

Home, Post archive

site copyright Eric Freeman

Valid XHTML 1.0 Strict