简体   繁体   English

Composer下载在Mac上已损坏

[英]Composer Download is Corrupt on Mac

I have been trying to install Composer so I can upgrade to Symfony 2.1 but the download fails when I run curl -s https://getcomposer.org/installer | 我一直在尝试安装Composer,所以我可以升级到Symfony 2.1,但是当我运行curl -s https://getcomposer.org/installer时,下载失败了。 php. PHP。 The error message is: 错误消息是:

Downloading... The download is corrupt, retrying... Downloading... The download is corrupt, retrying... Downloading... The download is corrupt (phar error: "/Users/andrew.tarry/composer.phar" is a corrupted tar file (checksum mismatch of file "#!/usr/bin/env php <?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@nade")), aborting.

I am using a Mac on OSX 10.8.2 and PHP 5.4.8. 我在OSX 10.8.2和PHP 5.4.8上使用Mac。 Does anyone know the cause of this problem? 有谁知道这个问题的原因?

Then download the file from the website directly: Composer 然后直接从网站下载文件: Composer

its only a .phar archive. 它只是一个.phar档案。 You can run it with PHP 您可以使用PHP运行它

php /path/to/your/file/composer.phar options

or if you put the file to /usr/local/bin (i hope its the same on Mac) you can run them directly. 或者如果你把文件放到/usr/local/bin (我希望它在Mac上是一样的)你可以直接运行它们。 Without the path. 没有路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM