Before you can deploy your app on the production server, you need to install Ruby. The secret to getting RVM to use the right version is pkg_config. Installing Ruby 2.0.0 with RVM and Homebrew on Mac OS X 10.8 Mountain Lion This is a tutorial on how to install Ruby 2.0.0 on Mac OS X 10.8 Mountain Lion. To install RVM, you must first install Xcode. Do this by running $ rvm install ruby --latest. Chances are you won't want to use it because it's stored as a simple file on disk. RVM is a tool for installing and managing multiple Ruby versions. Rails ships with sqlite3 as the default database. Installing Ruby with RVM. Then we’ll use “rvm”, the Ruby Version Manager, to install a new version of Ruby. Upgraded to latest MacOSX 10.11 EI Capitan , Then you Might Know about OSX’s new System Integrity Protection ( SIP ) feature , Now you or any app can’t modify the /System or /usr or any other system files even with root permissions. Install the latest version of Ruby. Install with curl \curl -sSL https://get.rvm.io | bash -s stable; Source the RVM source ~/.rvm/scripts/rvm; Upgrading Ruby with RVM. Easy! Xcode is available on the Mac App Store or can be downloaded from Apple’s Developer site. If you want to install a specific version of Ruby, simply run $ rvm install ruby-2.4.0 , replacing the version number with the one you want. Lastly, we’ll use our newly-installed Ruby tools to install the Rails library itself. 3. If you are facing problem while installing homebrew I am going to show you how to disable SIP temporarily to install homebrew and other SIP related … Easy! To locate the Terminal, open Finder on your MacOS, click on Applications, locate the Utilities folder as shown in the image below, open the folder … Check the version of Ruby installed on your Mac. Open terminal and type: ruby -v. 2. Macs already come with a version of Ruby installed, but it’s usually a little out of date. The major commands around Ruby: ruby; gem; bundle; rbenv version manager or; rvm version manager; PROTIP: There is a war going on within the Ruby community between rvm and rbenv. brew install sqlite3. Once this command has finished running you may need to restart your terminal for rvm to be recognised. In this tutorial we recommend that you use Ruby Version Manager (RVM) for this purpose. 1. Most of the time, this is the result of Apple's Xcode not being installed on your system, or, if it is, not being the current version. In terminal, curl -L https://get.rvm.io | bash -s stable. Xcode is a suite of development tools from Apple, including tools for building Mac and iPhone applications. rvm will install an up-to-date version alongside your existing version. For this course, we only need the Xcode command-line tools, as many other tools rely on them. Install the Ruby Version Manager rvm. 1. RVM works by installing Ruby inside your home directory and manages the environment variables to allow you to switch between the system-wide Ruby and any Ruby installed using RVM. Switch among multiple versions of Ruby. From my experiences, the biggest gotcha is when you try to install a new version of Ruby with RVM, and you're met with a handful of confusing errors. Run the following to install them: xcode-select --install Once this is all working, you can actually install v1.0 next to it and with the right path settings, use them both as needed. We're going to install sqlite3 from homebrew because we can't use the built-in version with macOS Sierra without running into some troubles. The first tools we're going to install are the Xcode command-line tools.