Skip to content

Instantly share code, notes, and snippets.

@ignasbernotas
Created July 2, 2022 19:05
Show Gist options
  • Save ignasbernotas/36cb471c790c5353dc60ef927c0c456c to your computer and use it in GitHub Desktop.
Save ignasbernotas/36cb471c790c5353dc60ef927c0c456c to your computer and use it in GitHub Desktop.
Mac install PHP Swoole extension
echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc
echo 'export LDFLAGS="-L/usr/local/opt/openssl@3/lib"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/usr/local/opt/openssl@3/include"' >> ~/.zshrc
echo 'export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"' >> ~/.zshrc
brew install pcre2
brew reinstall openssl && brew unlink openssl && brew link openssl --force
pecl install swoole
# when propted with openssl type: yes --with-openssl-dir=/usr/local/opt/openssl@3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment