当我在Cygwin终端上运行这个命令'php -r "readfile('https://getcomposer.org/installer');" | 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 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扩展...
apt-cyg install
php
php-json
php-phar
php-mysql
php-curl
php-gd
php-intl
php-imap
php-mcrypt
php-pspell
php-recode
php-tidy
php-xmlrpc
php-xsl
PS:我为此创建了一个安装脚本:)https://github.com/voku/dotfiles/blob/master/firstInstallCygwin.sh