[英]Can't install composer - the json extension is missing
I'm trying to install composer on my Ubuntu 13.10 machine but the following error occurs: 我正在尝试在我的Ubuntu 13.10计算机上安装composer,但发生以下错误:
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
php --version
gives me PHP 5.5.3-1ubuntu2 (cli)
so I think it should have the json extension installed. php --version
给了我PHP 5.5.3-1ubuntu2 (cli)
所以我认为应该安装json扩展。
just install the module: 只需安装模块:
sudo apt-get install php5-json
EDIT - Reason: 编辑 - 原因:
See Heanzo Beanzo Comment: 见Heanzo Beanzo评论:
It has been removed in recent packages due to a license conflict see bug on php.net .
由于许可证冲突,它已在最近的软件包中被删除, 请参阅php.net上的错误 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.