Install perl-JSON on centos Install perl-JSON on centos json json

Install perl-JSON on centos


Try to install it via:

1) CPAN (cpan install)

$ sudo cpan JSON

2) CPAN minus (cpanm)

Install cpan minus

$ wget http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.5017.tar.gz$ tar -zxvf App-cpanminus-1.5017.tar.gz$ cd App-cpanminus-1.5017$ perl make.pl$ make $ make test$ sudo make install

Then install it via cpanm

$ sudo cpanm JSON

I prefer work with CPAN modules via cpanm, because it's modern and easy way!


Maybe this will help others.In my case,running in Centos 7:

yum install cpan

then

yum install cpanminus 


for cpan (not cpan minus):yum install cpancpan JSON