无法在Cygwin上全局安装Composer

3
当我在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。

1个回答

4

太棒了,我不知道Cygwin有apt的味道..而且你只需要在需要时将其放置在那里,完成后再将其删除..哇。此外,您实际上还找到了Lynx的用途! - Robert Mark Bram

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接