Assuming Kerberos is set up, and Apache (or nginx) and MySQL (or other db) are installed, this guide should work fine. NOTE: RVM needs to be installed via sudo, not directly as root.
- Prepare installation of RVM:
- install build tools such as build-essential
- install git
- Follow the instructions found here: https://rvm.beginrescueend.com/rvm/install for multi-user install. Although this installs it for all users locally, we need to add the lines specified in step 2 to the top of
/etc/bash.bashrc
, ensuring that rvm and all $PATHs work over ssh. rvmsudo rvm install 1.9.2
followed byrvmsudo rvm use --default 1.9.2
. These should make sure that all users are now using ruby 1.9.2 - easily checkable by logging in as a non-root user and doingwhich ruby
(which should include rvm in the path somewhere), orruby -v
.sudo gem install rails
. This should install rails 3.