Skip to content

Instantly share code, notes, and snippets.

@justincase
Created April 15, 2015 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justincase/0394e4058054cdcc0a63 to your computer and use it in GitHub Desktop.
Save justincase/0394e4058054cdcc0a63 to your computer and use it in GitHub Desktop.
Fix "Failed to enable crypto" on php56
# https://github.com/composer/composer/issues/2798
# Failed to enable crypto
grafhax commented on Dec 3, 2014
I've encountered this problem when setting up new dev environments on my mac. To solve the issue i've had to make sure the php-curl library was compiled with php and updated. I generally do this using MacPorts to manage/compile the libs.
# update the ports tree (software list)
$ sudo port -v selfupdate
# install php (shortcut for compiling php with our required libs)
$ sudo port install php56
# install the mcrypt library for php
$ sudo port install php56-mcrypt
# install the curl library for php
$ sudo port install php56-curl
# configure which php version your system should use
$ sudo port select php php56
Hope this helps!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment