我正在尝试在我的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
给了我PHP 5.5.3-1ubuntu2 (cli)
所以我认为应该安装json扩展程序。
答案 0 :(得分:47)
只需安装模块:
sudo apt-get install php5-json
编辑 - 原因:
请参阅Heanzo Beanzo评论:
由于许可证冲突see bug on php.net,它已在最近的软件包中删除。