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