我正试图在 KnownHost VPS 上安装 Composer。当运行这个命令时:
curl -sS 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 phar extension is missing.
Install it or recompile php without --disable-phar
如何安装 phar 扩展? 我正在 VPS 上运行 PHP 5.4.22。