Lib-OpenSSL Dependency issue Laravel and Composer on OSX Lib-OpenSSL Dependency issue Laravel and Composer on OSX laravel laravel

Lib-OpenSSL Dependency issue Laravel and Composer on OSX


I was having the same problem on Mac and MAMP, I tracked it down to it checking my apple PHP version instead of my MAMP version. I resolved this by creating a symlink from /usr/local/bin to my MAMP PHP.

cd /usr/local/binsudo ln /Applications/MAMP/bin/php/php7.0.10/bin/php php


In my case, it was a matter of not having php mcrypt, which mean php wasn't compiled with openssl support. Installing php70-mcrypt solved it for me. Beware that it will recompile php.

brew install php70-mcrypt

My current versions are:

  • Homebrew 1.1.1
  • Homebrew/homebrew-core (git revision 81b69; last commit 2016-11-20)
  • PHP 7.0.13 (cli) (built: Nov 21 2016 11:26:59) ( NTS )
  • OSX El Capitan 10.11.6

Cheers!