Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can also install use <strong>rbenv</strong> to install and manage different versions of Ruby.</p> <p><strong>Note:</strong> I don't have anything against rvm. I simply noticed that installing various Rubies is a constant source of questions, both in Stack Overflow and also at work!</p> <p><strong>Requirements</strong></p> <ul> <li>Here I'm assuming that you have <a href="http://mxcl.github.com/homebrew/" rel="nofollow">Homebrew</a>. (If you haven't installed that yet, make sure your permissions are correct on <code>/usr/local/</code> after installation is complete, or you can run into mysterious-looking errors that should not be preventing you from installing Ruby.)</li> <li>Run <code>rvm implode</code> before installing rbenv. This will destroy rvm.</li> </ul> <p><strong>To install rbenv using Homebrew</strong></p> <ol> <li><p>Update Homebrew.</p> <pre><code>$ brew update </code></pre></li> <li><p>Install rbenv.</p> <pre><code>$ brew install rbenv </code></pre></li> <li><p>Install ruby-build.</p> <pre><code>$ brew install ruby-build </code></pre></li> <li><p>Follow the instructions listed after installing these formulae in order to make it available correctly in your shell.</p></li> </ol> <p><strong>To install Ruby 1.9.3</strong></p> <ol> <li><p>See what versions of Ruby you can install.</p> <pre><code>$ rbenv install </code></pre></li> <li><p>Install one. The lastest as of this post is <code>1.9.3-p194</code>.</p> <pre><code>$ rbenv install 1.9.3-p194 </code></pre></li> </ol> <p><strong>To use Ruby 1.9.3</strong></p> <pre><code>$ rbenv global 1.9.3-p194 </code></pre> <p><strong>To rehash rbenv</strong></p> <p>Sometimes you need to run <code>rbenv rehash</code>, like when you install a gem that has native extensions for your operating system.</p> <pre><code>$ rbenv rehash </code></pre> <p>There are lots of other things you can do with rbenv, like use a particular Ruby in a particular directory, or a particular ruby in the shell. See the appropriate docs for more info!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload