Php OpenSSL版本错误
当我试图通过PECL为php7的XAMPP安装mongodb扩展时,它向我显示错误:Php OpenSSL版本错误,php,mongodb,openssl,Php,Mongodb,Openssl,当我试图通过PECL为php7的XAMPP安装mongodb扩展时,它向我显示错误: checking whether to enable developer build flags... no checking whether to enable code coverage... no checking whether to use system libbson... no checking whether to use system libmongoc... no checking conf
checking whether to enable developer build flags... no
checking whether to enable code coverage... no
checking whether to use system libbson... no
checking whether to use system libmongoc... no
checking configuring libmongoc... ...
checking for pkg-config... /usr/local/bin/pkg-config
configure: error: OpenSSL version 1.0.1 or greater required.
ERROR: `/private/tmp/pear/temp/mongodb/configure --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config' failed
但如果我提示“openssl版本”,它会显示:
MacBook-Pro-dns:~ soldatov$ openssl version
OpenSSL 1.0.2k 26 Jan 2017
我尝试了很多互联网上的东西来修复它。。。但它继续抛出错误。命令行openssl二进制文件可能存在的重复并不意味着存在openssl头(编译需要这些头)可能存在的重复命令行openssl二进制文件不意味着存在openssl头(编译需要这些头)