Take the 2-minute tour ×

I want to install Ruby on Rails (I'm running a FreeBSD but don't want to use Ports for RoR) so this is a more generic unix/RoR question.

Simply what is the best way to install Rake.

http://rake.rubyforge.org/ suggests:

% ruby install.rb


gem install --remote rake

I have installed Ruby 1.9 and the path to its lib is


I'm not sure the best way of the two above options or if there any other recommendations. (Essentially, FreeBSD is still on Ruby 1.8 and so I just want to do all RoR in a self contained install, and not have the Ports gems mixed with other gems that are not in Ports).

share|improve this question
add comment

1 Answer

Ruby 1.9.2 (lang/ruby19 port) ships with rake-0.8.7.

You may completely ignore Ruby 1.8 on FreeBSD, by a) deleting it and b) adding to /etc/make.conf the line:


Then install lang/ruby19 port, update rubygems (as root):

# gem update rdoc
# gem update --system

and finally, install rails:

# gem install rails

And forget about any gems from ports, use gem tool to manage gems.

If you want a non-system rails setup, install shells/bash port and manually install RVM https://rvm.beginrescueend.com/. It perfectly works in FreeBSD with bash as your shell.

share|improve this answer
add comment

Your Answer


