【发布时间】:2016-09-27 22:47:44
【问题描述】:
自从上次 XCode 更新到 7.3.1 版后,我在 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
会发生什么?
【问题讨论】:
-
您是否尝试过打开 Xcode 并确保您不必接受任何协议?大多数时候它在我的机器上失败,是因为服务协议。如果是这种情况,只需打开 xcode,接受协议并再次运行 composer。
-
我也遇到过,但不幸的是它在这种情况下没有帮助。感谢您的提示。
-
您是否尝试过删除所有软件包并再次运行composer?也许重新安装作曲家?
-
composer show --platform告诉你什么? -
我不知道 show platform 命令。在清单中缺少 lib-openssl。我会尝试重新安装作曲家。
标签: php macos composer-php php-openssl