Skip to content
Delord Kévin edited this page Jan 26, 2014 · 3 revisions

Required installations

First thing first: what is rvm (https://rvm.io/).

The simplest way to install rvm is with:

   curl -L https://get.rvm.io | bash -s stable

If you use something other than bash as your shell, put this in your .$(your_shell)rc (checked on zsh):

   [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

Then install any ruby using this (1.9.3 is the ruby version of this project):

   rvm install 1.9.3

Then to use the ruby version you've installed, run:

   rvm use --default $ruby_version

Required libraries

Before running bundle install command, please make sure you have these libraries installed.

  • libxml2-dev
  • libxslt1-dev
  • libmysqlclient-dev
  • libpq-dev

or simply run the following command :

   sudo apt-get install libxml2-dev libxslt1-dev libmysqlclient-dev libpq-dev

Gems

Gems are little ruby packages. Mostly they are libs but they can sometimes be small utilities (such as the 'bundler' gem). There is a file called 'Gemfile' in the base directory. This is to be used with the gem 'bundler'. To install the gems required by the program, just type before launching:

   bundle install

This command line doesn't update gems, it just installs them. To update your gems use:

   bundle update

You should avoid installing gems with anything else than the previous lines, and always add the new gems you use to the Gemfile.

Clone this wiki locally