Getting started with Rails on FreeBSD

As I said in my Intro to FLPR, I think Rails was made to be on FreeBSD. It just works so well, and as you’ll see installation is a snap. Right now we’re going to install RubyGems, and then install a few of the gems you’ll need to run Rails. Some we’ll install from gems, stome we’ll install from ports. Enough talk.

Installing RubyGems

This is a snap. Just install the port.

# cd /usr/ports/devel/ruby-gems && make install clean

Boom. Gems is installed

Now we’ll install Rails. This is simple, because you just follow the basic Rails installation, using gem. Say yes to all the dependencies.

# gem install rails

Installing the postgres adapter

The postgres gem requires the postgresql client libraries, so we need to install them first.

cd /usr/ports/databases/postgresql82-client/ && make install clean

Now install the ruby-postgres gem

# gem install ruby-postgres
blog comments powered by Disqus