IT技術に関する情報掲載サイト

プログラミングに関することを掲載します。

Install it or recompile php without --disable-jsonとエラーがでたとき

いろいろインストールしているとインストールのエラーが出て困ることが多いです。

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

 

今回は、Install it or recompile php without --disable-jsonというメッセージをみて、php-jsonを入れればOK。

yum install php-json