8784: Fix test for latest firefox.
[arvados.git] / doc / _includes / _install_ruby_and_bundler.liquid
1 Ruby 2.3 is recommended; Ruby 2.1 is also known to work.
2
3 h4(#rvm). *Option 1: Install with RVM*
4
5 <notextile>
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.3
8 </span></code></pre></notextile>
9
10 Either log out and log back in to activate RVM, or explicitly load it in all open shells like this:
11
12 <notextile>
13 <pre><code><span class="userinput">source /usr/local/rvm/scripts/rvm
14 </span></code></pre></notextile>
15
16 Once RVM is activated in your shell, install Bundler:
17
18 <notextile>
19 <pre><code>~$ <span class="userinput">gem install bundler</span>
20 </code></pre></notextile>
21
22 h4(#fromsource). *Option 2: Install from source*
23
24 Install prerequisites for Debian 8:
25
26 <notextile>
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>
32
33 Install prerequisites for CentOS 7:
34
35 <notextile>
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>
41
42 Install prerequisites for Ubuntu 12.04 or 14.04:
43
44 <notextile>
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>
50
51 Build and install Ruby:
52
53 <notextile>
54 <pre><code><span class="userinput">mkdir -p ~/src
55 cd ~/src
56 curl -f http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz | tar xz
57 cd ruby-2.3.3
58 ./configure --disable-install-rdoc
59 make
60 sudo make install
61
62 sudo -i gem install bundler</span>
63 </code></pre></notextile>