namshi/jose 5.0.2 requires lib-openssl on macosx

后端 未结 1 741
借酒劲吻你
借酒劲吻你 2021-01-23 08:05

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

相关标签:
1条回答
  • 2021-01-23 08:15

    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.

    0 讨论(0)
提交回复
热议问题