Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
namshi/jose 5.0.2需要macosx上的lib openssl_Macos_Xampp_Jwt - Fatal编程技术网

namshi/jose 5.0.2需要macosx上的lib openssl

namshi/jose 5.0.2需要macosx上的lib openssl,macos,xampp,jwt,Macos,Xampp,Jwt,我查看了其他问题,但找不到解决方案。在尝试安装软件包时,我遇到了标题中提到的错误 我在mac os x Sierra上使用PHP5.6的xampp版本7.0.8 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

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

我在mac os x Sierra上使用PHP5.6的xampp版本7.0.8

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

使用它的人也遇到了同样的问题。你可以看到他打开的问题

问题在于,在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
的安装应该可以正常工作。

谢谢!我在安装了mamp后试过了,效果很好。谢谢!我在安装了mamp后尝试了它,它成功了。