【发布时间】:2017-02-01 05:21:10
【问题描述】:
我有 php 版本 5.6,我需要为我的项目安装 composer。我正在使用这些命令进行安装:
curl -sS https://getcomposer.org/installer | php
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 phar extension is missing.
Install it or recompile php without --disable-phar
【问题讨论】:
-
纯英语对不起。
-
你知道
phar扩展是什么吗? -
我是如何测试存在 phar 的?
-
查看
<?php phpinfo(); ?>报告。 -
是真的 /etc/php.d/20-phar.ini?
标签: php centos composer-php