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: *** [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):
➜ unzip -a tf-50b8.zip ➜ rm tf-50b8/help/html2tf
As per Ron’s instructions, we needed to remove the pre-built
➜ cd tf-50b8 # try a dry-run first to see if the patch succeeds ➜ patch -p 1 -u -N --dry-run < tf-python-patch ➜ patch -p 1 -u -N < tf-python-patch
tf-50b8directory. Apply the second set of patches:
# try a dry-run first to see if the patch succeeds ➜ patch -p 1 -u -N --dry-run < tf-pcre-patch ➜ patch -p 1 -u -N < tf-pcre-patch
➜ ./configure ➜ make ➜ make install
tfbinary should now be available on your path.
If there’s a request for it, I can look into creating a homebrew package with the patches already applied.