首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >namshi/jose 5.0.2需要lib-openssl

namshi/jose 5.0.2需要lib-openssl
EN

Stack Overflow用户
提问于 2016-10-19 18:31:27
回答 2查看 588关注 0票数 2

我正在尝试作曲家的更新,但上面写着:

代码语言:javascript
复制
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
    - tymon/jwt-auth 0.5.1 requires namshi/jose 2.2.* -> satisfiable by namshi/jose[2.2.0, 2.2.1, 2.2.2].
    - tymon/jwt-auth 0.5.2 requires namshi/jose 2.2.* -> satisfiable by namshi/jose[2.2.0, 2.2.1, 2.2.2].
    - tymon/jwt-auth 0.5.3 requires namshi/jose 2.2.* -> satisfiable by namshi/jose[2.2.0, 2.2.1, 2.2.2].
    - tymon/jwt-auth 0.5.0 requires namshi/jose 2.0.* -> satisfiable by namshi/jose[2.0.0, 2.0.1, 2.0.2, 2.0.3].
    - tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1].
    - tymon/jwt-auth 0.5.4 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1].
    - tymon/jwt-auth 0.5.5 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1].
    - tymon/jwt-auth 0.5.6 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1].
    - tymon/jwt-auth 0.5.7 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1].
    - tymon/jwt-auth 0.5.8 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1].
    - tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1].
    - namshi/jose 2.2.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 2.2.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 2.2.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.
    - namshi/jose 2.0.3 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 2.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 2.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 2.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.
    - 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.
    - 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.
    - Installation request for tymon/jwt-auth 0.5.* -> satisfiable by tymon/jwt-auth[0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.5.8, 0.5.9].

我试图在互联网上搜索,但仍然无法修复,我正在使用与macOS塞拉利昂一起运行的XAMPP,我也尝试过:

代码语言:javascript
复制
php -i | grep "SSL Version"
SSL Version => SecureTransport
rm /usr/local/bin/openssl
sudo ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/bin/openssl
sudo chown root:wheel /usr/local

但它仍然

代码语言:javascript
复制
php -i | grep "SSL Version"
SSL Version => SecureTransport

我尝试过的另一个选择是:

代码语言:javascript
复制
brew link openssl --force Warning: Refusing to link: openssl Linking keg-only openssl means you may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. Instead, pass the full include/library paths to your compiler e.g.: -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

我检查了我的OpenSSL版本:

代码语言:javascript
复制
openssl OpenSSL> version OpenSSL 1.0.2j 26 Sep 2016

也尝试过这样做:

代码语言:javascript
复制
    ls -lash /usr/local/bin/openssl 8 lrwxr-xr-x 1 root admin 44B Oct 20 01:18 /usr/local/bin/openssl -> /usr/local/Cellar/openssl/1.0.2j/bin/openssl and ls -lash /usr/local/Cellar/openssl/1.0.2j/bin/openssl 1064 -r-xr-xr-x 1 aryo admin 528K Oct 19 17:38 /usr/local/Cellar/openssl/1.0.2j/bin/openssl
ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/bin/openssl ln: /usr/local/bin/openssl: File exists
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2017-01-02 15:30:57

问题是,MacOS塞拉利昂使用了一个由composer未正确检测到的“本地OpenSSL”实现。您可以通过执行以下命令行来验证它:

代码语言:javascript
复制
php -i | grep OpenSSL

如果您看到LibreSSL,那么尝试使用Homebrew重新编译OpenSSL:

代码语言:javascript
复制
/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实现应该是OpenSSLnamshi/jose的安装应该很好。您可以看到关于这个主题的讨论,关于我的何塞计划

票数 0
EN

Stack Overflow用户

发布于 2016-10-19 19:56:20

这是macOS塞拉利昂的一个问题。同样的事情也发生在我身上。我升级到塞拉,然后我的整个开发环境都出现了类似的错误。我不得不降级到埃尔卡皮坦。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40139048

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档