- Rvm Install Ruby Mac Os X
- Install Ruby For Mac Os X 10 13 Download
- Mac Os X Installer Download
- Mac Os X Download
If you want to install another version of Ruby besides 2.2.0, follow the instructions below. Installing other versions of Ruby, such as 2.1.5 Before you install a version of Ruby with RVM, you should make sure you have the latest version of RVM: rvm get stable -autolibs=enable -auto-dotfiles Then run: rvm install 2.1.5. First install Sass using one of the options below, then run sass -version to be sure it installed correctly. If it did, this will include 1.27.0. You can also run sass -help for more information about the command-line interface. I've written an in depth guide to installing Ruby on Rails on Mac OS X 10.9 Mavericks. It's here: Install Ruby on Rails Mac OS X Mavericks. It explains how to set up the Mac (with Xcode Command Tools), install Ruby with RVM (the Ruby Version Manager), and install Rails, with advice about updating important gems and setting up a professional development environment. Install Ruby with rbenv. I decided to setup Octopress on my Mac so that I can publish blog posts from either Windows or MacOS. I’m on OS X 10.8.2. I tried to follow the Octopress instructions for installing Ruby but ran into a few problems. Install Homebrew. Homebrew is a package manager for OS X. Open Terminal and install Homebrew with.
This article explains why you should avoid using the version of Ruby bundled with Mac OS X and should instead install your own version of Ruby with RVM, the Ruby Version Manager.
Hands Off the System Ruby
Apple bundles the Ruby programming language with OS X. However, the main caveat for using the bundled version, called the system Ruby, is that Apple bundles Ruby for it’s own use. Therefore, it’s best not to make changes to the system Ruby.
Apr 15, 2014 Learn how to install Rails 4, Ruby 3, Sublime Text, iTerm2, and configure Git. Get ready to code and set up your development environment for Mac. Learn more at www.baserails.com.
You’ll know when you’re about to change the system Ruby when you need to prefix a gem installation with
sudo, for example:
Rvm Install Ruby Mac Os X
Another reason for not using the system Ruby is that it’s often several versions behind the latest stable version.
The Ruby Version Manager
A better alternative to using the system Ruby is to install Ruby with RVM, the Ruby Version Manager. RVM is a tool for installing different versions of Ruby itself. RVM has the following advantages:
- RVM enables you to install multiple versions of Ruby and allows you to change which version you want to use.
- RVM installs each version of Ruby in a hidden folder in your home folder so each version of Ruby you install doesn’t affect the system Ruby.
- Gems installed by RVM-managed versions of Ruby are installed within the hidden folder in your home folder containing that version of Ruby.
- You won’t need use
sudoto install gems.
To check that you’re currently using the system Ruby, open Terminal and type the following:
If you’re using the system Ruby, OS X will respond with:
Install Ruby For Mac Os X 10 13 Download
You can check which version of Ruby OS X is using with:
Installing RVM and Ruby
The RVM install page has comprehensive instructions for installing RVM that work on Mac OS X. I’ll provide the steps I used here.
The first step is to install the mpapis public key. However, as the install page notes, you might need gpg. Mac OS X doesn’t ship with gpg so before installing the public key, you’ll need to install gpg. I installed gpg with Homebrew:
Mac Os X Installer Download
After you’ve installed gpg, you can install the mpapis public key:
I've listed the mapis public key install command here for illustration. You should use the version on the RVM install page.
I chose to install RVM with the latest stable version of Ruby, which at the time was 2.2.0:
After the installation completes, close the Terminal window and open a new one to make sure that Terminal picks up any environment changes.
You can list the versions of Ruby available to RVM with
rvm use command selects a version of Ruby:
You can check that you’re using an RVM-managed version of Ruby with:
OS X now responds with:
which tells us we’re using version 2.2.0 and that version 2.2.0 has been installed in my home folder away from the system Ruby. You can confirm this by asking Ruby itself with:
The RVM-managed version of Ruby responds with:
As I mentioned earlier, gems installed with RVM-managed versions of Ruby are located with the Ruby. You can check where gems will be installed with:
The following lines of output shows that gems will be installed in the folder XXX.
Mac Os X Download
To find out where a particular gem is installed, use the
gem which command. For example,
gem which jekyll locates the Jekyll gem: