Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matthewbdaly/6ae0059c9e86cf97523419474fed4e46 to your computer and use it in GitHub Desktop.
Save matthewbdaly/6ae0059c9e86cf97523419474fed4e46 to your computer and use it in GitHub Desktop.
How I got PHPBrew working on Mac OS Monterey on M1 silicon
export OPENSSL_PREFIX=$(brew --prefix openssl@1.1)
export OPENSSL_CFLAGS="-I${OPENSSL_PREFIX}/include"
export OPENSSL_LIBS="-L${OPENSSL_PREFIX}/lib -lcrypto -lssl"
phpbrew --debug install -j 12 8.1 +default -- --with-openssl="shared,${OPENSSL_PREFIX}" --without-pcre-jit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment