An up-to-date version of GCC is available from homebrew, but you need to tell MARK to look for those libraries instead of using MacOS's stock clang libraries. Simon Bonner has created a script to do this and packaged it in a homebrew Formula along with the MARK binary so that it is easy to install.
For most up-to-date instructions on this approach: https://github.com/sjbonner/mark-on-mac
Note: The MARK binaries are compiled for Intel-based Macs only (not the ARM M1-M2 chips...perhaps someday, but not at present).
In summary --
1) Install homebrew:
- Code: Select all
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2) Install gcc:
- Code: Select all
brew install gcc
3) Install mark:
- Code: Select all
brew tap sjbonner/tap
brew install mark-on-mac
You can check that the installation has worked by running
- Code: Select all
which mark
If successful you'll find mark in
- Code: Select all
/usr/local/bin
There may be (currently?) a slight wrinkle which is that this will break when GCC is updated via
- Code: Select all
brew upgrade
However, this is fixed simply by changing the library path in the shell script.
And now you're
