Bernard Sfez
Bernard Sfez

Reputation: 1369

Can't run Composer on my Mac Mountain Lion - openssl extension

I installed several CMS that require Composer.

Since 2 days i got error and can't go on.

[RuntimeException] You must enable the openssl extension to download files via https

I check the following:

$ openssl version OpenSSL 1.0.1e 11 Feb 2013
$ which openssl /opt/local/bin/openssl

phpinfo say Phar - Native OpenSSL support enabled and OpenSSL support enabled.

Still if i do

$ php -info| grep openssl OpenSSL support => disabled (install ext/openssl)

Does someone has a clue about what i should do to be able to run Composer ?

Upvotes: 3

Views: 4167

Answers (2)

user1980175
user1980175

Reputation:

which version you install is also important. there is a bug in openssl 0.9.8. read more here: https://github.com/composer/composer/issues/2021

Upvotes: 0

Bernard Sfez
Bernard Sfez

Reputation: 1369

In doubt (tks to Sven for pushing me that direction ;) ), I reinstall using port the openssl extension.

sudo port install php5-openssl

It didn't download files but reset something in the preferences and i was able to run Composer install properly on Tiki Wiki CMS (the CMS i'm using most).

Upvotes: 4

Related Questions