3 navsection: installguide
4 title: Install Ruby and bundler
7 Currently, only Ruby 2.1 is supported.
9 h2(#rvm). Option 1: Install with rvm
12 <pre><code><span class="userinput">sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
13 \curl -sSL https://get.rvm.io | sudo bash -s stable --ruby=2.1
14 sudo -i gem install bundler
15 sudo adduser "$USER" rvm
16 </span></code></pre></notextile>
18 Either log out and log back in to activate RVM, or explicitly load it in all open shells like this:
21 <pre><code><span class="userinput">source /usr/local/rvm/scripts/rvm
22 </span></code></pre></notextile>
24 h2(#fromsource). Option 2: Install from source
26 Install prerequisites for Debian 7 or 8:
29 <pre><code><span class="userinput">sudo apt-get install \
30 bison build-essential gettext libcurl3 libcurl3-gnutls \
31 libcurl4-openssl-dev libpcre3-dev libreadline-dev \
32 libssl-dev libxslt1.1 zlib1g-dev
33 </span></code></pre></notextile>
35 Install prerequisites for CentOS 6:
38 <pre><code><span class="userinput">sudo yum install \
39 libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel \
40 patch readline-devel zlib-devel libffi-devel openssl-devel \
41 automake libtool bison sqlite-devel
42 </span></code></pre></notextile>
44 Install prerequisites for Ubuntu 12.04:
47 <pre><code><span class="userinput">sudo apt-get install \
48 gawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev \
49 libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev \
50 libncurses5-dev automake libtool bison pkg-config libffi-dev
51 </span></code></pre></notextile>
53 Build and install Ruby:
56 <pre><code><span class="userinput">mkdir -p ~/src
58 curl http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.6.tar.gz | tar xz
60 ./configure --no-install-rdoc
64 sudo gem install bundler</span>
65 </code></pre></notextile>