错误:
swoole_ssl.h:27:10: fatal error: 'openssl/ssl.h' file not found
"Enable openssl support, require openssl library"
问题原因:
1、未安装openssl
2、默认的路径与安装的不一致,需要手动指定
解决方法:
1、brew install openssl
如果报一下错误,证明已安装,需要在install命令上增加指定路径:
Warning: openssl@1.1 1.1.1k is already installed and up-to-date.
To reinstall 1.1.1k, run:
brew reinstall openssl@1.1
2、指定路径
询问openssl的时候输入 yes --with-openssl-dir=$(brew --prefix openssl)