-
Notifications
You must be signed in to change notification settings - Fork 0
Ruby and RVM setup
This is a short guide showing you how to setup Ruby ruby with RVM rvm (Ruby Version Manager), the recommended environment for running the Snowplow Ruby applications in.
This guide was written for [Ubuntu Server 12.10] ubuntu, but should work with minor changes in Debian or other Linux distributions.
First we want to install all the pre-requisites for RVM. Namely:
$ sudo apt-get update
$ sudo apt-get install curl
$ sudo apt-get install build-essential bison openssl libreadline5 \
libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev \
libxslt-dev libxml2-dev libpq-dev subversion autoconf
(A list of these can be printed by entering rvm notes
at the command prompt once you have RVM installed.)
Now install RVM:
$ curl -L https://get.rvm.io | bash -s stable
Edit ~/.bashrc
or ~/.zshrc
file by adding the following line to the end of the file:
source $HOME/.rvm/scripts/rvm
Save the above file and close this terminal before proceeding. That way any further configuration or installation work will be RVM-aware.
Now we can install all the required version of Ruby simply. The Snowplow Ruby applications use Ruby 1.9.3, so let's install this and make sure it's the default:
$ rvm install 1.9.3 --default
(Optional) To use a particular version enter:
$ rvm use 1.9.3
$ ruby -v # To check the version
Any Snowplow Ruby projects should have a .rvmrc
file in their root, which specifies the Gem file name and the Ruby version to use.
That's it! You are now ready to install any Snowplow Ruby application, such as:
Home | About | Project | Setup Guide | Technical Docs | Copyright © 2012-2013 Snowplow Analytics Ltd
HOME > [SNOWPLOW SETUP GUIDE](Snowplow setup guide) > Common
1. Trackers
Tracker setup: choosing a tracker
Javascript tracker setup
iOS tracker setup
2. Collectors
Collectors setup: choosing a collector
Cloudfront collector setup
Clojure collector setup
SnowCannon (node.js) setup
3. ETL
ETL setup: choosing an ETL module
EmrEtlRunner setup
Hive ETL
Scalding / Cascading ETL
4. Storage
Storage setup: choosing a storage option
StorageLoader setup
S3 / Hive storage setup
Infobright setup
5. Analytics
Analytics setup
[Analysis using Hive](hive analytics setup)
Infobright based analytics
ChartIO analytics setup
COMMON
Troubleshooting
IAM Setup Guide
Ruby and RVM setup
[Hosted assets](Hosted assets)