问题描述:学习thinphp入门问当时出现如下错误。教程中说明linux and mac 使用如下命令安装(我使用的Linux Deepin2015.1.1+php5.6):
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
输入命令:
curl -sS https://getcomposer.org/installer | php
报错如下:
kuaitu@kuaitu-pc:/etc/php5/cli$ sudo curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading 1.0.3...
Could not create file /etc/php5/cli/composer.phar: fopen(/etc/php5/cli/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/etc/php5/cli/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
Downloading 1.0.3...
Could not create file /etc/php5/cli/composer.phar: fopen(/etc/php5/cli/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/etc/php5/cli/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
Downloading 1.0.3...
Could not create file /etc/php5/cli/composer.phar: fopen(/etc/php5/cli/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/etc/php5/cli/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
The download failed repeatedly, aborting.