錯(cuò)誤:
swoole_ssl.h:27:10: fatal error: 'openssl/ssl.h' file not found
"Enable openssl support, require openssl library"
問(wèn)題原因:
1、未安裝openssl
2、默認(rèn)的路徑與安裝的不一致,需要手動(dòng)指定
解決方法:
1、brew install openssl??
如果報(bào)一下錯(cuò)誤,證明已安裝,需要在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、指定路徑
詢(xún)問(wèn)openssl的時(shí)候輸入 yes?--with-openssl-dir=$(brew --prefix openssl)