我一直在尝试安装Composer,因此我可以升级到Symfony 2.1,但是当我运行curl -s https://getcomposer.org/installer |时,下载失败了。 PHP。错误消息是:
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.
我在OSX 10.8.2和PHP 5.4.8上使用Mac。有谁知道这个问题的原因?
答案 0 :(得分:0)
然后直接从网站下载文件:Composer
它只是 .phar 存档。您可以使用PHP
运行它php /path/to/your/file/composer.phar options
或者如果您将文件放到/usr/local/bin
(我希望它在Mac上相同),您可以直接运行它们。没有路径。