If any Perl module fails to install with a cpan command, it is usually due to a dependency on some other module or software.
For example, if your cpan Crypt::SSLeay module fails to install on Linux, then try installing with a package manager like yum, as shown below:
sudo yum install perl-Crypt-SSLeay