When installing php Swoole extend Mac Enable openssl support, require openssl library
or fatal error: 'openssl/ssl.h' file not found
when specifying the openssl
path just fine
./configure --with-openssl-dir=/usr/local/opt/openssl@1.1 --enable-http2 --with-php-config=/Applications/MAMP/bin/php/php7.4.2/bin/php-config
The OpenSSL installed by brew is by default /usr/local/Cellar/openss/version
, and I will report fatal error: 'openssl/ssl.h' file not found
an error after using it . Probably my openssl installation path is in/usr/local/opt/[email protected]