I am trying to install WP-CLI on my Mac using the standard installation command (found here: http://wp-cli.org), yet I am receiving the following error message:
#!/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. If you can not modify the ini file, you can also runphp -d option=value
to modify ini values on the fly. You can use '-d' multiple times.Installing the main WP-CLI package...
Could not open input file: composer.phar
Installing the Boris package...
Could not open input file: composer.phar
WP-CLI files have been succesfully installed.
To test, run:
/Users/[username]/.composer/bin/wp --info
When I run the test it reports no such file or directory
.
I have not installed the bundled PHP that ships with OS X, nor am I using any kind of package. I use MAMP for my local development environment, so my php.ini file is located here:
`/Applications/MAMP/conf/php5.4.4/php.ini`
Can anyone please advise on the best way to get around this error message? Thanks.
curl http://wp-cli.org/installer.sh | bash
. I just updated my original post with the full error message.