php 无法安装 composer - 缺少 json 扩展
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19578803/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't install composer - the json extension is missing
提问by Nikos Grigoriadis
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 扩展。
回答by Rufinus
just install the module:
只需安装模块:
sudo apt-get install php5-json
EDIT - Reason:
编辑 - 原因:
See Heanzo BeanzoComment:
见Heanzo Beanzo评论:
It has been removed in recent packages due to a license conflict see bug on php.net.
由于许可证冲突,它已在最近的软件包中删除, 请参阅 php.net 上的错误。