! Finding REST::Client on cpanmetadb failed.
! cannot open file '/tmp/.cpanm/sources/http%www.cpan.org/02packages.details.txt.gz': No such file or directory opening compressed index
! Couldn't find module or a distribution REST::Client
The problem is because of "LWP::Protocol::https" module.
Removing the directory worked for me :
/home/perl/5.10/lib/site_perl/5.10.1$ rm –rf LWP*
or try with option "--no-lwp"
Example: cpanm REST::Client --no-lwp