Issue
make: *** [ext/openssl/openssl.lo] Error 1
OR like
_php_openssl_sockop_set_option in xp_ssl.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: symbol(s) not found for architecture x86_64
Step
- Find current installed openssl
1 | brew search openssl |
By Case
2.1 If [email protected] not installed
1
brew install [email protected]
2.2 If [email protected] installed and [email protected] not installed
1
2brew unlink [email protected]
brew install [email protected]2.3 If [email protected] and [email protected] are installed
1
brew unlink [email protected]
Install the PHP8.0, custom sqlite, zlib and openssl
1
2
3
4LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/[email protected]/lib" \
CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/include" \
PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig" \
phpbrew install 8.0.17 +default +dbs +intl +zlib=/usr/local/opt/zlib +openssl=/usr/local/opt/[email protected]Link the openssl again
1
brew link [email protected]