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

匿名 (未验证) 提交于 2019-12-03 02:31:01

问题:

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 ?

回答1:

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



回答2:

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



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!