Install Homebrew + Cask Mac (Older)

You probably need to:

  • install XCode CLI Tools (which can be difficult on older versions)
  • update OpenSSL
  • upgrade git

Install XCode CLI Tools

You can use a helper shell script to do this for you. The source comes from this gist. Alternatively, view its source, follow the code, and find your corresponding version of XCode CLI Tools and install accordingly.

Copy + Paste

If you don’t have a new enough version of OpenSSL, you won’t be able to download the script with wget or curl, so just open the link manually in a web browser and save the file with the same name below, on your Desktop.

From a Terminal session:

  • (if able, per note above) curl -O
  • mv
  • chmod +x
  • sudo sh

This script when run, the last line, will download the installer package, perform the install, and remove the dmg once finished.

Updating OpenSSL

1. Install Mac Ports

2. Install OpenSSL from Mac Ports

You can confirm your current version of OpenSSL with the command openssl version.

Install the latest version from Mac Ports with:

sudo port install openssl

Upgrade Git

Download and install the latest version of Git for Mac from

Leave a Reply

Your email address will not be published. Required fields are marked *