macOS 安装 swoole 报错 openssl/ssl.h file not found
报错信息:

报错很明显,找不到 openssl/ssl.h ,首先要确认电脑上有没有安装 openssl,如果没有安装的话可以用 brew 安装一下: brew install openssl , 但是我的电脑上是有的。
既然它找不到,那么就需要手动的指定 openssl 的目录:
./configure \ --enable-openssl \ --enable-http2 \ --with-openssl-dir=/usr/local/Cellar/openssl/1.0.2n
如上,使用 --with-openssl-dir 参数指定 openssl 的参数后,就能正常安装了。
安装成功:

posted on 2020-06-15 14:13 keinleerun 阅读(1216) 评论(0) 收藏 举报
浙公网安备 33010602011771号