Performance Tuning your Laravel & PHP Applications
13 Dec 2017Slides from the December Laravel TO talk are now up on Speaker Deck! Thanks to everyone who came out on this very cold night!
Slides from the December Laravel TO talk are now up on Speaker Deck! Thanks to everyone who came out on this very cold night!
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):
➜ unzip -a tf-50b8.zip
➜ rm tf-50b8/help/html2tf
As per Ron’s instructions, we needed to remove the pre-built html2tf
library.
tf-50b8
directory ➜ 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-50b8
directory. 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
tf
binary 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.
Slides from the November Laravel TO talk are now up on Speaker Deck!