21388: Modernize Debian install instructions
[arvados.git] / doc / sdk / ruby / index.html.textile.liquid
index 531469ea1acdf3ad665aaaa9e7a882cc32b843ea..ea0fc78797bc6166ff9b2ec341e35ff9ff3c1308 100644 (file)
@@ -12,36 +12,33 @@ SPDX-License-Identifier: CC-BY-SA-3.0
 
 The Ruby SDK provides a generic set of wrappers so you can make API calls easily.
 
 
 The Ruby SDK provides a generic set of wrappers so you can make API calls easily.
 
-h3. Installation
+h2. Installation
 
 If you are logged in to an Arvados VM, the Ruby SDK should be installed.
 
 To use it elsewhere, you can either install the @arvados@ gem via RubyGems or build and install the package using the arvados source tree.
 
 
 If you are logged in to an Arvados VM, the Ruby SDK should be installed.
 
 To use it elsewhere, you can either install the @arvados@ gem via RubyGems or build and install the package using the arvados source tree.
 
-h4. Prerequisites: Ruby >= 2.0.0
+h3. Prerequisites
 
 
-You can use "RVM":http://rvm.io/rvm/install to install and manage Ruby versions.
+# "Install Ruby":../../install/ruby.html
 
 
-h4. Option 1: install with RubyGems
+The SDK uses @curl@ which depends on the @libcurl@ C library.  To build the module you may have to install additional packages.  On supported versions of Debian and Ubuntu, run:
 
 <notextile>
 
 <notextile>
-<pre>
-$ <code class="userinput">sudo -i gem install arvados</code>
-</pre>
+<pre><code>
+# <span class="userinput">apt install build-essential libcurl4-openssl-dev
+</code></pre>
 </notextile>
 
 </notextile>
 
-h4. Option 2: build and install from source
+h3. Install with RubyGems
 
 <notextile>
 <pre>
 
 <notextile>
 <pre>
-$ <code class="userinput">git clone https://github.com/arvados/arvados.git</code>
-$ <code class="userinput">cd arvados/sdk/ruby</code>
-$ <code class="userinput">gem build arvados.gemspec</code>
-$ <code class="userinput">sudo -i gem install arvados-*.gem</code>
+# <code class="userinput">gem install arvados</code>
 </pre>
 </notextile>
 
 </pre>
 </notextile>
 
-h4. Test installation
+h3. Test installation
 
 If the SDK is installed, @ruby -r arvados -e 'puts "OK!"'@ should produce no errors.
 
 
 If the SDK is installed, @ruby -r arvados -e 'puts "OK!"'@ should produce no errors.