namshi/jose 5.0.2 requires lib-openssl on macosx

六月ゝ 毕业季﹏ 提交于 2019-12-02 11:03:04

问题


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.

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

Thanks.


回答1:


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

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.

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

php -i | grep OpenSSL

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

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



来源:https://stackoverflow.com/questions/41417725/namshi-jose-5-0-2-requires-lib-openssl-on-macosx

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