Failed installaton on Mac OS Snow Leopard

I am trying to install Homebrew on my Early 2008 MacBook, which is running a fresh install of Mac OS X 10.6.8 (Snow Leopard). However…

When I try to install it with ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" it fails.
This is the error it throws:
Ocawesome101s-MacBook:~ ocawesome101$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-e:224: syntax error, unexpected '.', expecting $end
.map { |d| File.join(HOMEBREW_PREFIX, d) }

^

Unfortunately brew doesn’t support Macs that far back (I think they’ve even dropped support for 10.12).

There’s TigerBrew for older Macs:

but I’m not sure if that works on Snow Leopard or not.

I’ve got a 2007 iMac that can only run El Capitan (10.11) which is starting to fail to build/compile some utilities. I wish there was a group working on older Mac support, but unfortunately I don’t know enough to help.

It’s not homebrew, and can’t do some of the things homebrew does (like casks) but MacPorts still provides quite a bit of support for older systems on a best-effort basis. It installs properly on 10.4PPC on up. Support for 10.6.8 is quite good – it installs a current libc++ and runs all the current compilers up to clang-9.0. I currently have 1400 active ports installed on my 10.6.8 systems (which I will admit kind of surprised me) including the last qt5 that 10.6.8 could support.

For 10.7 and up, support is even better, as the SDKs for those versions are more like current SDKs.

So don’t despair; give it a try if you like.

Thank you, I will try that :slight_smile: