首頁 > 後端開發 > php教程 > mac 安装Composer失败?

mac 安装Composer失败?

WBOY
發布: 2016-06-06 20:40:05
原創
1450 人瀏覽過

我是通过brew来安装Composer的brew install composer

<code>composer: Composer PHP requirements check has failed. The following verification command:

curl -s http://getcomposer.org/installer | /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off -d date.timezone=UTC -d apc.enable_cli=Off -- --check

failed because of the following reason:


Error: An unsatisfied requirement failed this build.
</code>
登入後複製
登入後複製

我的php

<code>php --version
PHP 5.5.19 (cli) (built: Nov 30 2014 23:56:22)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.6, Copyright (c) 2002-2014, by Derick Rethans
</code>
登入後複製
登入後複製

mac小白,求解决

===========================================

我擦,刚刚解决了

<code>Verify your installation by running:
"composer --version".

You can read more about composer and packagist by running:
"brew home composer".
</code>
登入後複製
登入後複製

这个问题已被关闭,原因:无法获得确切结果的问题

回复内容:

我是通过brew来安装Composer的brew install composer

<code>composer: Composer PHP requirements check has failed. The following verification command:

curl -s http://getcomposer.org/installer | /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off -d date.timezone=UTC -d apc.enable_cli=Off -- --check

failed because of the following reason:


Error: An unsatisfied requirement failed this build.
</code>
登入後複製
登入後複製

我的php

<code>php --version
PHP 5.5.19 (cli) (built: Nov 30 2014 23:56:22)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.6, Copyright (c) 2002-2014, by Derick Rethans
</code>
登入後複製
登入後複製

mac小白,求解决

===========================================

我擦,刚刚解决了

<code>Verify your installation by running:
"composer --version".

You can read more about composer and packagist by running:
"brew home composer".
</code>
登入後複製
登入後複製

恭喜
brew install 还是有诸多坑,没apt-get爽 呵呵,因此 服务端开发迟迟没敢用mac

brew update下再试试看

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板