- #Mac update ruby on rails how to
- #Mac update ruby on rails mac os x
- #Mac update ruby on rails mac os
- #Mac update ruby on rails install
#Mac update ruby on rails install
It may seem like overkill at this point to install a version control system. Next, to install RVM from its GitHub repository (the recommended way), we need a working version of the git version control system. dmg file and thenĭouble-click the enclosed. Once it has finishedĭownloading, simply double-click the. Search field on the left) and then click on the appropriate version of The downloads page, search for "command line tools" (in the To access the downloads you may need to register as an Apple developer if you haven’t already done so.
"Install" to automatically download and install the Command Line If the gccĬommand isn’t found, you may get a dialog asking if you’d like to installĪpple’s Command Line Tools for Xcode. If you see a version number, then you’re all set. GCC is only available after you’ve installed Apple’s Command Line Tools for Xcode.Ĭheck to see if you already have GCC installed by typing the following at the command prompt: gcc -version
#Mac update ruby on rails mac os
Unfortunately, GCC isn’t installed by default on Mac OS X. To do that, RVM uses the GCC compiler and other build tools. RVM compiles Ruby versions from source code. It’s simply a way to interact with your computer by entering commands. If this is the first time you’ve seen this side of a Mac, it may seem rather intimidating. The default prompt includes the computer name ( enoch in my case), the current working directory (tilde represents your home directory), the current user name (mike), and a trailing $ which is the prompt for input. You should see a new window with a cursor and a prompt that looks something like this: enoch:~ mike$ You’ll end up using Terminal a lot as a Rails developer, so it’s good to have it handy. So we’ll use RVM to install a separate user-level Ruby environment, rather than mucking around with the system-installed Ruby.įirst, find the Terminal application (it’s under the Applications -> Utilities directory) and drag it onto your dock. However, it’s best not to mess around with the system-installed Ruby as it’s intended to be used by the operating system and apps installed by Apple.
#Mac update ruby on rails mac os x
Note that Mac OS X ships with a version of Ruby. That way, you’ll be able to easily switch back and forth between different Ruby and Rails versions. It’s a command-line tool that makes it easy to install and manage multiple independent Ruby environments on the same machine.
The best way we’ve found to install Ruby and Rails on a Mac is using the Ruby Version Manager (RVM). Here’s our recommended approach… Install Ruby 2 and Rails 5 Setting up a stable Ruby and Rails environment on your Mac has never been easier. That way, after the course, you’ll already be familiar with the environment where you can then start writing your own Rails apps! During the course, you’ll then write, refactor, and test your code directly on your own computer. For the online Rails course, that means installing Ruby and Rails. All of our online courses start with comprehensive instructions for getting the required software installed and set up on your own computer. Use the officially recommended way to manage ruby versions with rbenv. Then we can install almost all the packages we need via homebrew. Mac OS X 10.11 comes with version 2.0.0 of Ruby so this command should work. Install Homebrew: ruby -e "$(curl -fsSL install / master / install ) " If it is already installed, expected output should be: xcode- select : error : command line tools are already installed, use "Software Update" to install updates Command-Line Toolsįirst of all, make sure developer command-line tools is installed. The following process might not be the solution for everyone. Especially, to get it work on RubyMine 8.0.3.
#Mac update ruby on rails how to
This is a memo of how to setup Ruby-on-Rails on Mac OS X 10.11.