Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>RVM is easy to install, but you are making it harder by trying to mix and match installation types. You do NOT need to create a new user. When run, RVM will create a directory in your home directory: <code>~/.rvm</code>, and install everything inside it. That means you will have all the correct permissions. You do NOT need to be running as root, you do NOT need to use sudo. I'd recommend closing all your command-lines and open one fresh and start at your home directory. If you are running as root, log out, and log back in to your normal account. For a single-user install you do NOT need to be root.</p> <p>For a single user, using RVM as their Ruby sandbox, use <a href="https://rvm.io/rvm/install/#explained">the single-user installation docs</a>. Follow <em>ALL</em> the instructions on that page, <em>INCLUDING</em> the "Post Install" section.</p> <p>Close your terminal window, and reopen it. If you have correctly followed the instructions above, typing <code>rvm info</code> should spit out a template of what is to come once you install a Ruby instance. If you see nothing output, or get an error, then retrace your steps in the "Post Install" section, and go through the "Troubleshooting" section. Most of the problems people have occur because they didn't bother to read the directions.</p> <p>Once RVM is installed, type <code>rvm notes</code> and read what dependencies you need to install. If you do not add those files your Rubies installed will be missing functionality. They will work, but some of the creature comforts you'll hear about won't work and you will wonder why.</p> <p>After installing the dependencies you should be in good shape to install Rubies. Type <code>rvm list known</code> for all the Rubies RVM can install. If you want 1.8.7 type <code>rvm install 1.8.7</code>, and, similarly, <code>rvm install 1.9.2</code> for Ruby 1.9.2. If you want a particular revision you can add that, based on the ones in the list.</p> <p>It's important to periodically update RVM using <code>rvm get head</code>. That will add features, fix bugs, and tell RVM about new versions of Ruby it can install if you request.</p> <p>After installing a Ruby, type <code>rvm list</code> and it should show up in the list, looking something like this:</p> <pre> rvm rubies ruby-1.8.7-p334 [ x86_64 ] ruby-1.9.2-p180 [ x86_64 ] </pre> <p>Type <code>rvm use 1.9.2 --default</code> to set a default Ruby that will be sticky between logins. Use the version of whatever Ruby you want to default to if 1.9.2 doesn't float your boat. Once you've defined a default it should look something like:</p> <pre> rvm rubies ruby-1.8.7-p334 [ x86_64 ] => ruby-1.9.2-p180 [ x86_64 ] </pre> <p>Before you begin installing gems into a RVM-managed Ruby, read <a href="https://rvm.io/rubies/rubygems/">"RVM and RubyGems "</a>, in particular the part that says "DO NOT use sudo... ". I repeat. Do NOT use sudo to install any gems, in spite of what some blog or web page says. RVM's author knows better when it comes to working with RVM controlled Rubies. That is another mistake people use with RVM, again as a result of not reading the directions.</p> <p>On Mac OS, you'll need the latest version of XCode for your OS. Do NOT use the XCode that came with Snow Leopard on the DVD. It is buggy. Download and install a new version from <a href="http://developer.apple.com/technologies/xcode.html">Apple's Developer site</a>. It's a free download requiring a free registration. It's a big file, approximately 8GB, so you'll want to start it and walk away. Install XCode, and you should be ready to have RVM install Rubies.</p> <p>Finally, RVM installs easily, as will the Rubies you ask it to install. I have it on about four or five different machines and VMs on Mac OS, Ubuntu and CentOS. It takes me about a minute to install it and another minute to configure it and start installing a new Ruby. It really is that easy.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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