Created
July 2, 2022 19:05
-
-
Save ignasbernotas/36cb471c790c5353dc60ef927c0c456c to your computer and use it in GitHub Desktop.
Mac install PHP Swoole extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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