swoole安装时make错误原因及处理技巧有哪些?

2026-05-06 21:530阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计159个文字,预计阅读时间需要1分钟。

swoole安装时make错误原因及处理技巧有哪些?

相关专题

/Users/luzhuang/Downloads/swoole-src-4.4.3/include/swoole.h:596:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^~~~~~~~~~~~~~~ 1 error generated. make: *** [php_swoole_cxx.lo] Error 1

报错原因

报错很明显,找不到 openssl/ssl.h ,首先要确认电脑上有没有安装 openssl

Mac安装openssl

brew install openssl

既然它找不到,那么就需要手动的指定 openssl 的目录:

./configure --enable-coroutine --enable-openssl --enable-http2 --enable-async-redis --enable-sockets --enable-mysqlnd --with-openssl-dir=/usr/local/Cellar/openssl/1.0.2s --with-php-config=/Applications/MAMP/bin/php/php7.2.14/bin/php-config

推荐学习: swoole视频教程

标签:Swoole报错

本文共计159个文字,预计阅读时间需要1分钟。

swoole安装时make错误原因及处理技巧有哪些?

相关专题

/Users/luzhuang/Downloads/swoole-src-4.4.3/include/swoole.h:596:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^~~~~~~~~~~~~~~ 1 error generated. make: *** [php_swoole_cxx.lo] Error 1

报错原因

报错很明显,找不到 openssl/ssl.h ,首先要确认电脑上有没有安装 openssl

Mac安装openssl

brew install openssl

既然它找不到,那么就需要手动的指定 openssl 的目录:

./configure --enable-coroutine --enable-openssl --enable-http2 --enable-async-redis --enable-sockets --enable-mysqlnd --with-openssl-dir=/usr/local/Cellar/openssl/1.0.2s --with-php-config=/Applications/MAMP/bin/php/php7.2.14/bin/php-config

推荐学习: swoole视频教程

标签:Swoole报错