teniendo problemas para instalar el compositor
Estoy instalando compositor con el siguiente cammand
curl -s https://getcomposer.org/installer | php
Pero sigo bajandomensaje de error
Zafars-MacBook-Pro:etc zafarsaleem$ curl -s https://getcomposer.org/installer | php
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The detect_unicode setting must be disabled.
Add the following to the end of your `php.ini`:
detect_unicode = Off
A php.ini file does not exist. You will have to create one.
¿Cómo puedo instalar composer eliminando el error anterior?
EDITAR
Zafars-MacBook-Pro:etc zafarsaleem$ php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Edición más reciente
Después de una investigación encontré quephp.ini
archivo que se está utilizando está en/etc/php.ini
. Sin embargo, cuando verifiqué este archivo en/etc
carpeta no estaba allí./etc
carpeta contenidaphp.ini.default
carpeta que enlazó a/private/etc/php.ini.default
. Así que agreguédetect_unicode = Off
en/etc/php.ini.default
y el nombre de este archivo aphp.ini
. Ahora cuando ejecuto el siguiente comando
curl -s https://getcomposer.org/installer | php
O
sudo curl -s https://getcomposer.org/installer | php
Entonces me sale los siguientes errores
Zafars-MacBook-Pro:/ zafarsaleem$ sudo curl -s https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Download failed: failed to open stream: Permission denied
Downloading...
Download failed: failed to open stream: Permission denied
Downloading...
Download failed: failed to open stream: Permission denied
The download failed repeatedly, aborting.
¿Cómo puedo instalar Composer en mi computadora y eliminar los problemas anteriores? Por favor ayuda