/Users/phperstar/Downloads/swoole/include/swoole.h:498:10: fatal error: 'openssl/ssl.h' file not fou
找到你们的openssl文件夹,把它拷贝到swoole安装包下的include下面,技术是openssl的所有.h文件,我的openssl文件的目录为/usr/local/opt/openssl/include 把这个路径下的openssl文件夹copy到安装文件夹中的include下就ok了。
cp -R /usr/local/opt/openssl/include/* ./include/
./php_swoole.h:130:2: error: "Enable openssl support, require openssl library."
brew info openssl
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
重新编译安装
homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
Homebrew/php自来水在2018年3月底被弃用,并将所有PHP公式转移到Homebrew/core,旧的brew tap homebrew/dupes、brew tap homebrew/versions、brew tap homebrew/homebrew-php都会报这个错误
brew tap homebrew/core
includes... configure: error: Cannot find igbinary.h
sudo pecl install igbinary
网友评论