What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

From the Apple Developer Forum (account required): “The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions. -mmacosx-version-min tells the tools what OS versions you need to work with, so the tools can disable optimizations that won’t run on those OS versions. If you need to run on older … Read more

commands not found on zsh

It’s evident that you’ve managed to mess up your PATH variable. (Your current PATH doesn’t contain any location where common utilities are located.) Try: Alternatively, for “resetting” zsh, specify the complete path to the shell: or