我查看了其他问题,但找不到解决方案。尝试安装时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].
Thanks.
有人使用我开发的 Jose 库遇到过同样的问题。你可以看到他打开的问题在本页.
问题在于,在 MacOS Sierra 上,Composer 无法正确检测到 OpenSSL 实现,并且库是否需要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
应该可以正常工作。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)