centos 6.5 安装weixin

下载cpanm

wget  http://xrl.us/cpanm  --no-check-certificate -O /sbin/cpanm && chmod +x  /sbin/cpanm


centos6.5:/root/mojo#cpanm https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz
--> Working on https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz
Fetching https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz ... ERROR: LWP will support https URLs if the LWP::Protocol::https module is installed.
FAIL
! Download https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz failed. Retrying ... 
ERROR: LWP will support https URLs if the LWP::Protocol::https module is installed.
! Download https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz failed. Retrying ... 
ERROR: LWP will support https URLs if the LWP::Protocol::https module is installed.
! Download https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz failed. Retrying ... 
! Failed to download https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz
! Failed to fetch distribution Mojo-Weixin-1.2.1



yum -y install *SSL*

yum -y install *ssl*


centos6.5:/root#cpan Net::SSLeay


centos6.5:/root#cpan IO::Socket::SSL

centos6.5:/root#cpanm https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz
--> Working on https://cpan.metacpan.org/authors/id/S/SJ/SJDY/Mojo-Weixin-1.2.1.tar.gz



原文地址:https://www.cnblogs.com/hzcya1995/p/13350098.html