Created
April 15, 2015 23:44
-
-
Save justincase/0394e4058054cdcc0a63 to your computer and use it in GitHub Desktop.
Fix "Failed to enable crypto" on php56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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