Homebrew is a commonly used package manager on macos.
Mac ruby update homebrew.
The command is pretty straightforward.
Older versions of os x are mostly compatible so follow along as far as you can and then google search for any problems you run into.
The missing package manager for macos or linux.
Alright so now that homebrew is installed we can use it to install a newer version of ruby.
This will take about 30 minutes.
Mac admins and power users alike can leverage much of their installation workflows to homebrew by becoming familiar with how it works to manage packages on devices via the cli.
Rbenv install 1 9 3 p125 now if you d like to use 1 9 3 by default you can run the following command.
Brew install ruby.
Installing ruby using homebrew is easy.
This should install the latest ruby version.
Rbenv global 1 9 3 p125.
Homebrew is package manager for macs which makes installing lots of different software like git ruby and node simpler.
We will be setting up a ruby on rails development environment on macos 10 14 mojave.
Use the package manager to install ruby.
Brew update brew install rbenv brew install ruby build once you have rbenv and ruby build installed you can run the following command to get ruby 1 9 3 installed.
Brew update brew tap homebrew dupes brew install autoconf automake apple gcc42 the new gcc will coexist happily alongside the default one.
Installing homebrew on a mac installation.
Homebrew macos ruby versions 2 0 and above are included by default in macos releases since at least el capitan 10 11.
Homebrew lets you avoid possible security problems associated with using the sudo command to install software like node.