====== How to setup the latest Rails with pkgsrc ====== * Ruby 1.8.6 (delivered version via Blastwave is currently 1.8.5) * Rails 2.0.2 (delivered version is currently 1.2.x) * RMagick 2.0.0 * Keeps the version of MySQL installed via Blastwave, and setup to be managed through Webmin. * Install PKGSRC : http://wiki.joyent.com/accelerators:pkgsrc * Ensure pkgsrc is in the PATH for your root, and the user you'll use to deploy your rails application. ===== Install Ruby ===== * Install Ruby 1.8.6: * nano /opt/local/etc/mk.conf * ACCEPTABLE_LICENSES+=fee-based-commercial-use * cd lang/ruby && bmake install cd /tmp/ wget http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz gtar xvfz rubygems-1.0.1.tgz cd rubygems-1.0.1/ /opt/local/bin/ruby setup.rb ln -s /opt/local/bin/gem18 /opt/local/bin/gem (http://blog.ra66i.org/archives/informatics/2007/12/23/a-quick-gem-101-faq-gemrunner-name-error/) ===== Install Gems ===== You should then be ready to install Gems. To get a setup similar to the new gems that you are gem install rake gem install rails gem install capistrano gem install json gem install mongrel gem install mongrel_cluster gem update mysql -- --with-mysql-dir=/opt/csw/mysql5/ gem install postgres gem install tzinfo