重新撸码

fatal error: 'openssl/ssl.h' fil

2020-10-10  本文已影响0人  大黄蜂阿天

安装方式

建议方式

指定openssl地址

//下载swoole包
1 wget https://gitee.com/swoole/swoole/repository/archive/master.zip 
//解压
2 unzip master 
//进入源码目录
3 cd swoole 
//查看openssl安装位置
4 brew --prefix openssl 
//生成configure文件
5 phpize 
// 配置环境
6 ./configure --with-openssl-dir=/usr/local/opt/openssl@1.1 --enable-openssl
//编译和安装
7 make && sudo make install
//检查是否成功
➜  swoole php --ri swoole
...
openssl => OpenSSL 1.1.1g  21 Apr 2020
...
上一篇 下一篇

猜你喜欢

热点阅读