problemy z instalacją kompozytora
Instaluję kompozytora za pomocą następującej kamery
curl -s https://getcomposer.org/installer | php
Ale wciąż jestem na doleKomunikat o błędzie
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.
Jak mogę zainstalować kompozytora usuwając powyższy błąd?
EDYTOWAĆ
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)
Najnowsza edycja
Po kilku badaniach znalazłem tophp.ini
używany plik jest w/etc/php.ini
. Jednak kiedy sprawdziłem ten plik w/etc
folderu tam nie było./etc
w folderzephp.ini.default
folder, z którym połączono/private/etc/php.ini.default
. Dodałem więcdetect_unicode = Off
w/etc/php.ini.default
i zmieniono nazwę tego pliku naphp.ini
. Teraz, gdy wykonam poniższe polecenie
curl -s https://getcomposer.org/installer | php
LUB
sudo curl -s https://getcomposer.org/installer | php
Wtedy dostaję następujące błędy
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.
Jak mogę zainstalować kompozytora na moim komputerze i usunąć powyższe problemy? Proszę pomóż