魏长东

weichangdong

东邪

正在查看: 标记有标签 composer 的文章(第 1 页 / 共 1 篇)

曲折的过程-linux安装composer

网上看了安装composer的教程,就两行命令,结果我安装的时候,一个雷接一个雷的。

虚拟机linux装composer,

curl -sS https://getcomposer.org/installer | /usr/local/php/bin/php 

报错说连不上host,然后我用我的电脑用浏览器代理把php文件下载下来,然后传到虚拟机linux再去执行。

/usr/local/php/bin/php composer.php,结果又报错

【Some settings onyour machine make Composer unable to work properly.
Make sure thatyou fix the issues listed below and run this script again:
The opensslextension is missing, which means that secure HTTPS transfers areimpossible.
If possible youshould enable it or recompile php with --with-openssl】

然后一看,我当时装php的时候,装了openssl,但是编译安装php的时候,确实没有加--with-openssl选项。

如是,决定装php的openssl。

»»阅读全文

Tags: composer