Rails on FreeBSD

Posted by Jonathan

I’ve updated the Rails port to include optional dependencies on ruby-fcgi and memcache-client:

In order to get a Rails installation with FastCGI, MemCache-Client and native MySQL/PostgreSQL/SQLite support just do:

# cd /usr/ports/www/rubygem-rails
# make install clean

That’s it!

Better Support for ActiveRecord in the Ports Tree

Posted by Jonathan

Roderick van Domburg sent me a patch for the ActiveRecord FreeBSD port that lets you choose to depend on the native MySQL bindings.

I’ve updated the patch to support PostgreSQL and SQLite3 too. When you now install ActiveRecord or Rails through the FreeBSD ports tree you will see this screen:

You can choose support for the native bindings. The ports tree will install them for you and will remember the dependencies. If you want to change these settings just re-configure the port:

# cd /usr/ports/databases/rubygem-activerecord
# make config

I’m thinking about adding such options for www/rubygem-rails so that it can depend on www/ruby-fcgi. My goal is to get installing Rails on FreeBSD very easy.