<pre name="code" class="sql">jrhmpt01:/root# cpan Weixin::Client;
报错信息如下:
t/load_module.t .. 1/1
# Failed test 'use Weixin::Client;'
# at t/load_module.t line 8.
# Tried to use 'Weixin::Client'.
# Error: Can't locate Net/SSL.pm in @INC) at /usr/share/perl5/Net/HTTPS.pm line 19.
# Can't locate IO/Socket/SSL.pm in @INC (@INC contains: /root/.cpan/build/Weixin-Client-2.0-IEWdXw/blib/lib /root/.cpan/build/Weixin-Client-2.0-IEWdXw/blib/arch
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/Net/HTTPS.pm
line 23.
# Compilation failed in require at /usr/share/perl5/LWP/Protocol/https.pm line 48.
# Compilation failed in require at /root/.cpan/build/Weixin-Client-2.0-IEWdXw/blib/lib/Weixin/Client.pm line 7.
# BEGIN failed--compilation aborted at /root/.cpan/build/Weixin-Client-2.0-IEWdXw/blib/lib/Weixin/Client.pm line 7.
# Compilation failed in require at t/load_module.t line 8.
# BEGIN failed--compilation aborted at t/load_module.t line 8.
# Looks like you failed 1 test of 1.
t/load_module.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
需要安装 :
Error: Can't locate Net/SSL.pm in @INC) at /usr/share/perl5/Net/HTTPS.pm line 19.
# Can't locate IO/Socket/SSL.pm in @INC (@INC contains:
cpan IO::Socket::SSL
jrhmpt01:/root# cd .cpan/
jrhmpt01:/root/.cpan# ls
build FTPstats.yml Metadata prefs sources
jrhmpt01:/root/.cpan# find . -name SSL
./build/IO-Socket-SSL-2.020-3FMbkd/lib/IO/Socket/SSL
./build/IO-Socket-SSL-2.020-3FMbkd/blib/lib/IO/Socket/SSL
./build/IO-Socket-SSL-2.020-3FMbkd/blib/lib/auto/IO/Socket/SSL
./build/IO-Socket-SSL-2.020-3FMbkd/blib/arch/auto/IO/Socket/SSL
./build/IO-Socket-SSL-2.016-LxqFXJ/lib/IO/Socket/SSL