【问题标题】:namshi/jose 5.0.2 requires lib-openssl on macosxnamshi/jose 5.0.2 在 macosx 上需要 lib-openssl
【发布时间】:2017-05-16 00:33:25
【问题描述】:

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

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

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].

谢谢。

【问题讨论】:

    标签: macos xampp jwt


    【解决方案1】:

    使用the Jose library I developed 的人也遇到过同样的问题。你可以看到他打开的问题on this page

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

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

    php -i | grep OpenSSL
    

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

    /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 的安装应该可以正常工作。

    【讨论】:

    • 谢谢!我在安装 mamp 后尝试了它,它成功了。
    猜你喜欢
    • 2017-03-01
    • 1970-01-01
    • 2016-09-27
    • 1970-01-01
    • 2016-01-05
    • 1970-01-01
    • 1970-01-01
    • 2019-08-23
    • 2015-05-15
    相关资源
    最近更新 更多