brew install swoole openssl 错误处理

错误:

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)

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容