Lib-OpenSSL依赖问题在OSX上发布了Laravel和Composer

Ben*_*rey 13 macos openssl jwt laravel composer-php

我的问题

简而言之,当我运行时composer update,我收到以下错误:

  Problem 1
    - tymon/jwt-auth 0.5.4 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
    - tymon/jwt-auth 0.5.5 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
    - tymon/jwt-auth 0.5.6 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
    - tymon/jwt-auth 0.5.7 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
    - tymon/jwt-auth 0.5.8 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
    - tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
    - 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].
    - 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 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.
    - 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].
Run Code Online (Sandbox Code Playgroud)

附加信息

我不确定这个问题的原因,因为我不能确定它何时出现.我所知道的是,它已经过去了几天,甚至可能在今天早些时候......

我今天做了一些可能导致这种情况的事情:

以上所有可能与此完全无关,它可能纯粹是巧合

我试过了什么

我已经忘记了我尝试的事情的数量,但这里有几个:

  • 将版本更改为"tymon/jwt-auth": "0.5.*"最新的alpha版本(这很有效,但后来我遇到了JWT-Auth的实现问题)所以我不得不恢复
  • 我花了很多时间玩各种依赖项的版本,虽然这样做,不可避免地改变了错误信息,但它们仍然没有解决问题
  • 我使用了升级到最新版本的openssl brew upgrade openssl.但是,这并没有更新PHP中的openssl,因为我正在使用MAMP(我认为),而且我无法控制使用哪个版本的openssl PHP编译...

我的研究

我花了几个小时搜索各种网站,尝试各种各样的东西,并探索许多潜在的解决方案,但没有任何东西,但我已经解决了这个问题.这些是我发现的一些网站/页面:

小智 18

http://www.farces.com/wikis/naked-server/php/php-openssl/ 按照上面链接中的步骤,它将解决问题

  • 如果我能给你50个赞成,我会!非常感谢!你救了我的命!谢谢你,谢谢你,谢谢你!!!!! (2认同)

小智 13

我在Mac和MAMP上遇到了同样的问题,我跟踪它检查我的苹果PHP版本而不是我的MAMP版本.我通过创建一个从/ usr/local/bin到我的MAMP PHP的符号链接来解决这个问题.

cd /usr/local/bin
sudo ln /Applications/MAMP/bin/php/php7.0.10/bin/php php
Run Code Online (Sandbox Code Playgroud)