2 Copyright (C) The Arvados Authors. All rights reserved.
4 SPDX-License-Identifier: CC-BY-SA-3.0
7 Ruby 2.3 is recommended; Ruby 2.1 is also known to work.
9 h4(#rvm). *Option 1: Install with RVM*
12 <pre><code><span class="userinput">sudo gpg --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
13 \curl -sSL https://get.rvm.io | sudo bash -s stable --ruby=2.3
14 </span></code></pre></notextile>
16 Either log out and log back in to activate RVM, or explicitly load it in all open shells like this:
19 <pre><code><span class="userinput">source /usr/local/rvm/scripts/rvm
20 </span></code></pre></notextile>
22 Once RVM is activated in your shell, install Bundler:
25 <pre><code>~$ <span class="userinput">gem install bundler</span>
26 </code></pre></notextile>
28 h4(#fromsource). *Option 2: Install from source*
30 Install prerequisites for Debian 8:
33 <pre><code><span class="userinput">sudo apt-get install \
34 bison build-essential gettext libcurl3 libcurl3-gnutls \
35 libcurl4-openssl-dev libpcre3-dev libreadline-dev \
36 libssl-dev libxslt1.1 zlib1g-dev
37 </span></code></pre></notextile>
39 Install prerequisites for CentOS 7:
42 <pre><code><span class="userinput">sudo yum install \
43 libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel \
44 patch readline-devel zlib-devel libffi-devel openssl-devel \
45 make automake libtool bison sqlite-devel tar
46 </span></code></pre></notextile>
48 Install prerequisites for Ubuntu 12.04 or 14.04:
51 <pre><code><span class="userinput">sudo apt-get install \
52 gawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev \
53 libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev \
54 libncurses5-dev automake libtool bison pkg-config libffi-dev curl
55 </span></code></pre></notextile>
57 Build and install Ruby:
60 <pre><code><span class="userinput">mkdir -p ~/src
62 curl -f http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz | tar xz
64 ./configure --disable-install-rdoc
68 sudo -i gem install bundler</span>
69 </code></pre></notextile>