6691: Add reference to Ubuntu trusty in Ruby install instructions.
[arvados.git] / doc / _includes / _install_ruby_and_bundler.liquid
1 Currently, only Ruby 2.1 is supported.
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.1
8 sudo -i gem install bundler
9 sudo adduser "$USER" rvm
10 </span></code></pre></notextile>
11
12 Either log out and log back in to activate RVM, or explicitly load it in all open shells like this:
13
14 <notextile>
15 <pre><code><span class="userinput">source /usr/local/rvm/scripts/rvm
16 </span></code></pre></notextile>
17
18 h4(#fromsource). *Option 2: Install from source*
19
20 Install prerequisites for Debian 7 or 8:
21
22 <notextile>
23 <pre><code><span class="userinput">sudo apt-get install \
24     bison build-essential gettext libcurl3 libcurl3-gnutls \
25     libcurl4-openssl-dev libpcre3-dev libreadline-dev \
26     libssl-dev libxslt1.1 zlib1g-dev
27 </span></code></pre></notextile>
28
29 Install prerequisites for CentOS 6:
30
31 <notextile>
32 <pre><code><span class="userinput">sudo yum install \
33     libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel \
34     patch readline-devel zlib-devel libffi-devel openssl-devel \
35     automake libtool bison sqlite-devel
36 </span></code></pre></notextile>
37
38 Install prerequisites for Ubuntu 12.04 or 14.04:
39
40 <notextile>
41 <pre><code><span class="userinput">sudo apt-get install \
42     gawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev \
43     libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev \
44     libncurses5-dev automake libtool bison pkg-config libffi-dev
45 </span></code></pre></notextile>
46
47 Build and install Ruby:
48
49 <notextile>
50 <pre><code><span class="userinput">mkdir -p ~/src
51 cd ~/src
52 curl http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.6.tar.gz | tar xz
53 cd ruby-2.1.6
54 ./configure --no-install-rdoc
55 make
56 sudo make install
57
58 sudo gem install bundler</span>
59 </code></pre></notextile>