自上次 XCode 更新到 7.3.1 版以来,我在 OSX 上遇到了composer和openssl的问题。它在更新之前工作。
我尝试通过作曲家更新更新包。包"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
可能发生了什么?