Build Tools
xcode cli tools
Under the hood macOS is a Unix operating system with it’s roots in BSD.
In order to compile source code you need some tools that will do compilation.
While Ruby code isn’t compiled, the most accepted way to install Ruby itself is to compile it from source. You will also find that homebrew needs to compile some things.
On macOS the accepted way of doing this is by installing xcode
$ xcode-select --install
if you already installed homebrew, this will say that you’ve already got it installed.
Homebrew
macOS does not come with it’s own package manager (like Linux does), however there is a community that has put one together.
You can install it by running
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Stop and understand
- Describe what
-fsSL
does - Describe what
-c
does
Hint
$ man curl
- look up the curl flags$ man bash
- look up the bash flag
To Do
- Work through section 1.2 and 1.3 in Learn Enough Command Line to be Dangerous (just before “Man pages”).
- Install xcode cli tools
- Install Homebrew