Merge branch '16678-login-tokens-lifetime-config'
[arvados.git] / doc / _includes / _install_ruby_and_bundler_sso.liquid
1 {% comment %}
2 Copyright (C) The Arvados Authors. All rights reserved.
3
4 SPDX-License-Identifier: CC-BY-SA-3.0
5 {% endcomment %}
6
7 Ruby 2.3 is recommended; Ruby 2.1 is also known to work.
8
9 h4(#rvm). *Option 1: Install with RVM*
10
11 <notextile>
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>
15
16 Either log out and log back in to activate RVM, or explicitly load it in all open shells like this:
17
18 <notextile>
19 <pre><code><span class="userinput">source /usr/local/rvm/scripts/rvm
20 </span></code></pre></notextile>
21
22 Once RVM is activated in your shell, install Bundler:
23
24 <notextile>
25 <pre><code>~$ <span class="userinput">gem install bundler</span>
26 </code></pre></notextile>
27
28 h4(#fromsource). *Option 2: Install from source*
29
30 Install prerequisites for Debian 8:
31
32 <notextile>
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>
38
39 Install prerequisites for CentOS 7:
40
41 <notextile>
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>
47
48 Install prerequisites for Ubuntu 12.04 or 14.04:
49
50 <notextile>
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>
56
57 Build and install Ruby:
58
59 <notextile>
60 <pre><code><span class="userinput">mkdir -p ~/src
61 cd ~/src
62 curl -f http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz | tar xz
63 cd ruby-2.3.3
64 ./configure --disable-install-rdoc
65 make
66 sudo make install
67
68 sudo -i gem install bundler</span>
69 </code></pre></notextile>