Installing TinyFugue on Mac with Python Bindings

For 99% of players who don't require Python bindings, you can save yourself a lot of headache by installing tf via brew:
brew install tiny-fugue
For the rest of us, please sit tight. ;)


After upgrading to Mac OS X High Sierra, my compiled TinyFugue stopped working. Referring once again to Ron Dippold’s excellent resource on TinyFugue scripting, I found the link to the pre-compiled binaries was broken.

Following Ron’s instructions, I was able to get as far as the make command before the build failed, with errors about incompatible architectures:

Undefined symbols for architecture x86_64:
  "_pcre_info", referenced from:
      _complete_macro in macro.o
      _tf_reg_compile_fl in pattern.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [tf] Error 1
make: *** [files] Error 2

Unfortunately, TinyFugue was calling a legacy API method pcre_info which has since been removed.

Long story short, here are the steps I took to get TinyFugue installed on the latest Mac OS (10.13.1 High Sierra at the time of this writing):

Before you begin, it's a good idea to ensure the necessary development tools are installed. You can confirm this by running:
sudo xcode-select --install

If there’s a request for it, I can look into creating a homebrew package with the patches already applied.