OSX - Composer - lib-openssl requirements

岁酱吖の 提交于 2019-12-23 16:56:43

问题


Since the last XCode Update to version 7.3.1 i run into problems with composer and openssl on OSX. It worked before update.

I try to update packages via composer update. The package "ricardoper/twitteroauth" requires lib-openssl: "*".

The following error is thrown while running 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 Version Infos:

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

What could have happened?


回答1:


I've been having the same problem, and I upgraded to PHP 5.6, and the error went away. Not sure if that's an option for you, but that's the only thing that fixed this for me...



来源:https://stackoverflow.com/questions/37520011/osx-composer-lib-openssl-requirements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!