OSX - Composer - lib-openssl要求

时间:2016-05-30 07:32:03

标签: php macos composer-php php-openssl

自上次版本7.3.1的XCode更新以来,我在OSX上遇到了 composer openssl 的问题。它在更新之前有效。

我尝试通过composer update更新包。包“ricardoper / twitteroauth”需要 lib-openssl:“*”

运行composer update时抛出以下错误:

ricardoper/twitteroauth v2.1.5 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it.

PHP版本信息:

php -v
PHP 5.5.34 (cli) (built: Apr 22 2016 19:16:58) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         /etc/php.ini
Scan for additional .ini files in: /Library/Server/Web/Config/php
Additional .ini files parsed:      (none)

php -i | grep OpenSSL
OpenSSL support => enabled
OpenSSL Library Version => LibreSSL 2.2.6
OpenSSL Header Version => LibreSSL 2.2.6
OpenSSL support => enabled

可能发生了什么?

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,我升级到了PHP 5.6,错误就消失了。不确定这是否适合您,但这是解决这个问题的唯一方法......