TL;DR — Résumé Rapide

Installez Ruby on Rails avec RVM sur Ubuntu ou macOS. Gérez plusieurs versions de Ruby et gemsets pour des environnements de développement propres et organisés.

Note : Cet article a été publié à l’origine en 2014. Certains étapes, commandes ou versions de logiciels ont pu changer. Consultez la documentation actuelle de Ubuntu pour les informations les plus récentes.

Prérequis

Avant de commencer, assurez-vous d’avoir :

  • A system running Ubuntu (desktop or server edition)
  • Terminal access with sudo privileges
  • Basic familiarity with Linux command line

How to: Install Ruby on Rails using RVM

This is just a quick complement of the article (</install-nginx-agent-newrelic-ubuntu-server/> “How to: Install the NginX Agent for NewRelic in an Ubuntu server”). As I mentioned there if you need Ruby for something other than running a plugin agent like in a development web server RVM is the way to go. Below are the quick instructions on how to deploy Ruby using RVM:

sudo apt-get install curl

 curl -L get.rvm.io | bash -s stable

 source ~/.rvm/scripts/rvm

 rvm requirements

 rvm install 2.1.0

 rvm use 2.1.0

 rvm —default use 2.1.0

 gem install rails -v 4.0.2

As always, check out https://rvm.io/ for the latest up to date information on RVM.

Résumé

Articles Connexes