Skip to content

InstallingThePackage

Simon Wright edited this page Nov 16, 2024 · 4 revisions

The software is provided in a standard macOS package, which you'll find at the bottom of the Release page.

Preparation

You must have either Xcode or the Command Line Tools installed (the CLTs are a lot smaller). If you have version 15.0 installed, you need to update to at least version 15.1.

Xcode can be downloaded from the App Store. Install the Command Line Tools by sudo xcode-select --install.

If you suspect your copy of the Command Line Tools is old, you can delete it by

sudo rm -rf /Library/Developer/CommandLineTools

and re-install.

You can find the version of the last installed CLTs by

softwareupdate --history | grep Command

Installing

Download the binary .pkg. It's not signed, so you can't double-click on it yet; the download has "put it into quarantine" by adding the "extended attribute" com.apple.quarantine. To take it out of quarantine,

$ cd ~/Downloads

and say

$ xattr -d com.apple.quarantine gcc-14.2.0-2-aarch64-apple-darwin21.pkg

Now you can double-click on it.

You could use -c instead of -d com.apple.quarantine, which is quicker and easier to remember; but Disk Utility will warn about "missing xattr fork in compressed archive" or similar when you run First Aid on the disk.

Clone this wiki locally