1 Currently, only Ruby 2.1 is supported.
3 h4(#rvm). *Option 1: Install with RVM*
6 <pre><code><span class="userinput">sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
7 \curl -sSL https://get.rvm.io | sudo bash -s stable --ruby=2.1
8 </span></code></pre></notextile>
10 Either log out and log back in to activate RVM, or explicitly load it in all open shells like this:
13 <pre><code><span class="userinput">source /usr/local/rvm/scripts/rvm
14 </span></code></pre></notextile>
16 Once RVM is activated in your shell, install Bundler:
19 <pre><code>~$ <span class="userinput">gem install bundler</span>
20 </code></pre></notextile>
22 h4(#fromsource). *Option 2: Install from source*
24 Install prerequisites for Debian 7 or 8:
27 <pre><code><span class="userinput">sudo apt-get install \
28 bison build-essential gettext libcurl3 libcurl3-gnutls \
29 libcurl4-openssl-dev libpcre3-dev libreadline-dev \
30 libssl-dev libxslt1.1 zlib1g-dev
31 </span></code></pre></notextile>
33 Install prerequisites for CentOS 6 or 7:
36 <pre><code><span class="userinput">sudo yum install \
37 libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel \
38 patch readline-devel zlib-devel libffi-devel openssl-devel \
39 make automake libtool bison sqlite-devel tar
40 </span></code></pre></notextile>
42 Install prerequisites for Ubuntu 12.04 or 14.04:
45 <pre><code><span class="userinput">sudo apt-get install \
46 gawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev \
47 libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev \
48 libncurses5-dev automake libtool bison pkg-config libffi-dev curl
49 </span></code></pre></notextile>
51 Build and install Ruby:
54 <pre><code><span class="userinput">mkdir -p ~/src
56 curl http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.7.tar.gz | tar xz
58 ./configure --disable-install-rdoc
62 sudo -i gem install bundler</span>
63 </code></pre></notextile>