Mac 安装php Swoole扩展出现 Enable openssl support, require openssl library 或者fatal error: 'openssl/ssl.h' file not found
Mac 安装php Swoole扩展时出现 Enable openssl support, require openssl library
或者fatal error: 'openssl/ssl.h' file not found
时,只需指定openssl
路径就好了
./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
brew 安装的 OpenSSL 默认在 /usr/local/Cellar/openss/版本号
,而我使用之后会报fatal error: 'openssl/ssl.h' file not found
错误,大概我的openssl安装路径是在/usr/local/opt/openssl@1.1