composer安装过程遇到php没有openssl扩展,导致安装失败的问题:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
后来发现即使手动安装好composer,在使用中下载管理包过程还是需要openssl,会报错:
[RuntimeException]
You must enable the openssl extension to download files via https
搜了下安装openssl扩展的方法,问题解决。
在php安装包下找到文件php-5.4.26/ext/openssl/config0.m4 并改下名字及后面的命令:
#cp config0.m4 config.m4
#/usr/local/php54/bin/phpize
#./configure -with-openssl -with-php-config=/usr/local/php54/bin/php-config
#make & make install
转自: http://www.phplover.cn/post/472.html