mac pecl 安装swoole ‘openssl/ssl.h’、'pcre2.h' file not found
bloger
2022-05-02 PM
1390℃
0条
/private/tmp/pear/temp/swoole/include/swoole_ssl.h:27:10: fatal error: 'openssl/ssl.h' file not found
解决方案:
brew install openss
- 安装swoole制定openssl目录或者做一个软连接
enable openssl support? [no] : yes --with-openssl-dir=/opt/homebrew/opt/openssl
/opt/homebrew/Cellar/php@7.4/7.4.27/include/php/ext/pcre/php_pcre.h:25:10: fatal error: 'pcre2.h' file not found
解决方案
brew install pcre
ln -s /opt/homebrew/include/pcre2.h /opt/homebrew/Cellar/php@7.4/7.4.27/include/php/ext/pcre/pcre2.h