php - OSX - Composer - lib-openssl 要求

标签 php macos composer-php php-openssl

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

我尝试通过 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

可能发生了什么?

最佳答案

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

关于php - OSX - Composer - lib-openssl 要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37520011/

相关文章:

php - 使用php在azure文件存储(不是BLOB存储)中上传的正确方法是什么

PHP 脚本有时会将数据插入数据库,有时则不会

c++ - 什么是 OSX 上 C++/Python 的良好初学者设置?

php - 无法在公司防火墙后面使用 Composer 进行更新/安装

php - GCP with Composer 运行 PHP 失败,无法识别 'app'

php - 无法安装具有要求的想象类(centos6.5/php5.4 上的供应商/autoload.php 错误

php - 确定文件是否为 PHP 图像的最佳方法是什么?

php - Mysql 中的递归 SELECT 查询?

php - 使用 PHP 的 mail() 可以从命令行运行,而不是从 Apache 运行,知道为什么吗?

cocoa - FSEvents 神秘地无法传递某些文件夹中的事件