无法安装composer - 缺少json扩展名

Nik*_*dis 29 php ubuntu json composer-php

我正在尝试在我的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
Run Code Online (Sandbox Code Playgroud)

php --version给了我PHP 5.5.3-1ubuntu2 (cli)所以我认为应该安装json扩展.

Ruf*_*nus 47

只需安装模块:

sudo apt-get install php5-json
Run Code Online (Sandbox Code Playgroud)

编辑 - 原因:

Heanzo Beanzo评论:

由于许可证冲突,它已在最近的软件包中被删除, 请参阅php.net上的错误.

  • 由于许可证冲突,它已在最近的软件包中删除(请参阅https://bugs.php.net/bug.php?id=63520). (7认同)