【发布时间】:2016-09-22 21:21:27
【问题描述】:
当我运行这个命令 'php -r "readfile('https://getcomposer.org/installer');" | php' 在 Cygwin 终端上。终端触发了以下错误:
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 json extension is missing.
Install it or recompile php without --disable-json
The phar extension is missing.
Install it or recompile php without --disable-phar
The iconv OR mbstring extension is required and both are missing.
Install either of them or recompile php without --disable-iconv
但是,所有这些扩展都在 php.ini 文件中启用。我正在使用 XAMPP。
【问题讨论】:
标签: php json xampp composer-php phar