namshi/jose 5.0.2 在 macosx 上需要 lib-openssl [英] namshi/jose 5.0.2 requires lib-openssl on macosx

查看:11
本文介绍了namshi/jose 5.0.2 在 macosx 上需要 lib-openssl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了其他问题,但找不到解决方案.尝试安装 JWT 包我收到标题中提到的错误.

I looked at other questions, but I could not find a solution.While trying to install JWT package I get an error as mentioned in the title.

我在 mac os x Sierra 上使用 xampp 7.0.8 版本和 PHP 5.6.我得到的错误如下.

I am using xampp version 7.0.8 on mac os x Sierra with PHP 5.6.The error I get is as follows.

Problem 1
    - namshi/jose 5.0.2 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.
    - namshi/jose 5.0.1 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.
    - namshi/jose 5.0.0 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.
    - tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
    - Installation request for tymon/jwt-auth ^0.5.9 -> satisfiable by tymon/jwt-auth[0.5.9].

谢谢.

推荐答案

使用 Jose 库的人我开发 遇到了同样的问题.您可以在在此页面上看到他打开的问题.

Someone who uses the Jose library I developed had encountered the same problem. You can see the issue he opened on this page.

问题是,在 MacOS Sierra 上,OpenSSL 实现没有被 Composer 正确检测到,如果库需要 lib-openssl,则会出现此消息.

The problem is that on MacOS Sierra the OpenSSL implementation is not correctly detected by composer and if a library needs lib-openssl then this message appears.

您可以通过执行以下命令行来验证您的 OpenSSL 实现:

You can verify your OpenSSL implementation by executing the following command line:

php -i | grep OpenSSL

如果您看到 LibreSSL 则尝试更改它:

If you see LibreSSL then try to change it:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/php
brew install curl --with-libssh2 --with-openssl

现在您的 OpenSSL 实现应该是 OpenSSL 并且 namshi/jose 的安装应该可以正常工作.

Now your OpenSSL implementation should be OpenSSL and the installation of namshi/jose should work fine.

这篇关于namshi/jose 5.0.2 在 macosx 上需要 lib-openssl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆