【发布时间】:2015-02-07 11:39:05
【问题描述】:
localhost:1nbox myusername$ sudo curl -s http://getcomposer.org/installer | phpmamp
#!/usr/bin/env php
All settings correct for using Composer
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to write bundled cacert.pem to: /Users/myusername/.composer/cacert.pem' in -:403
Stack trace:
#0 -(112): installComposer(false, false, 'composer.phar', false, false, false)
#1 -(14): process(Array)
#2 {main}
thrown in - on line 403
localhost:1nbox myusername$
我的.bash_profile 有:
alias phpmamp='/Applications/MAMP/bin/php/php5.6.2/bin/php'
【问题讨论】:
-
试试 curl -s getcomposer.org/installer |须藤phpmamp
-
@TotalWipeOut
sudo: phpmamp: command not found -
你将不得不直接调用 php 我认为然后
curl -s http://getcomposer.org/installer | sudo /Applications/MAMP/bin/php/php5.6.2/bin/php -
@TotalWipeOut 返回:
Uncaught exception 'RuntimeException' with message 'Unable to write bundled cacert.pem to: /Users/myusername/.composer/cacert.pem' in -:403 -
对不起,我打错了:/ - 已编辑我的评论。再试一次
标签: php macos composer-php