2009-11-22 137 views
3

我正在嘗試安裝該模塊進行郵件發送。如何爲ActivePerl安裝Email :: Send :: Gmail?

,我收到以下錯誤:

Warning: Prerequisite 'IO::Socket::SSL => ' for 'CWEST/Net-SMTP-SSL-1.01.tar.gz' 
failed when processing 'SULLR/IO-Socket-SSL-1.31.tar.gz' with 'make_test => NO' 
. Continuing, but chances to succeed are limited. 
cp lib/Net/SMTP/SSL.pm blib\lib\Net\SMTP\SSL.pm 
    CWEST/Net-SMTP-SSL-1.01.tar.gz 
    C:\Perl\site\bin\dmake.exe -- OK 
Running make test 
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 
'blib\arch')" t/*.t 
t/test.t .. 
# Failed test 'use Net::SMTP::SSL;' 
# at t/test.t line 2. 
t/test.t .. 1/1 #  Tried to use 'Net::SMTP::SSL'. 
#  Error: Can't locate IO/Socket/SSL.pm in @INC (@INC contains: C:\Perl\cpan 
\build\Net-SMTP-SSL-1.01-Jh6RtD\blib\lib C:\Perl\cpan\build\Net-SMTP-SSL-1.01-Jh 
6RtD\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\build\Net-SMTP-SS 
L-1.01-Jh6RtD\blib\lib/Net/SMTP/SSL.pm line 8. 
# BEGIN failed--compilation aborted at C:\Perl\cpan\build\Net-SMTP-SSL-1.01-Jh6R 
tD\blib\lib/Net/SMTP/SSL.pm line 8. 
# Compilation failed in require at (eval 4) line 2. 
# BEGIN failed--compilation aborted at (eval 4) line 2. 
# Looks like you failed 1 test of 1. 
t/test.t .. Dubious, test returned 1 (wstat 256, 0x100) 
Failed 1/1 subtests 

Test Summary Report 
------------------- 
t/test.t (Wstat: 256 Tests: 1 Failed: 1) 
    Failed test: 1 
    Non-zero exit status: 1 
Files=1, Tests=1, 0 wallclock secs (0.02 usr + 0.00 sys = 0.02 CPU) 
Result: FAIL 
Failed 1/1 test programs. 1/1 subtests failed. 
dmake.exe: Error code 129, while making 'test_dynamic' 
    CWEST/Net-SMTP-SSL-1.01.tar.gz 
    C:\Perl\site\bin\dmake.exe test -- NOT OK 
//hint// to see the cpan-testers results for installing this module, try: 
    reports CWEST/Net-SMTP-SSL-1.01.tar.gz 
Running make install 
    make test had returned bad status, won't install without force 
Running make for L/LB/LBROCARD/Email-Send-Gmail-0.33.tar.gz 
    Has already been unwrapped into directory C:\Perl\cpan\build\Email-Send-Gmail- 
0.33-G8YCrU 

    CPAN.pm: Going to build L/LB/LBROCARD/Email-Send-Gmail-0.33.tar.gz 

Warning: Prerequisite 'Net::SMTP::SSL => 0' for 'LBROCARD/Email-Send-Gmail-0.33. 
tar.gz' failed when processing 'CWEST/Net-SMTP-SSL-1.01.tar.gz' with 'make_test 
=> NO'. Continuing, but chances to succeed are limited. 
cp lib/Email/Send/Gmail.pm blib\lib\Email\Send\Gmail.pm 
    LBROCARD/Email-Send-Gmail-0.33.tar.gz 
    C:\Perl\site\bin\dmake.exe -- OK 
Running make test 
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 
'blib\arch')" t/*.t 
t/pod.t .. skipped: Test::Pod 1.14 required for testing POD: Can't locate Test/P 
od.pm in @INC (@INC contains: C:\Perl\cpan\build\Email-Send-Gmail-0.33-G8YCrU\bl 
ib\lib C:\Perl\cpan\build\Email-Send-Gmail-0.33-G8YCrU\blib\arch C:/Perl/site/li 
b C:/Perl/lib) at (eval 4) line 2. 
Files=1, Tests=0, 0 wallclock secs (0.03 usr + 0.00 sys = 0.03 CPU) 
Result: NOTESTS 
    LBROCARD/Email-Send-Gmail-0.33.tar.gz 
Tests succeeded but one dependency not OK (Net::SMTP::SSL) 
    LBROCARD/Email-Send-Gmail-0.33.tar.gz 
    [dependencies] -- NA 
Running make install 
    make test had returned bad status, won't install without force 

我試圖安裝IO ::插座:: SSL但也我得到了很多錯誤

任何想法是錯誤的?感謝幫助。當我嘗試安裝的Net :: SMTP :: SSL我得到以下錯誤:

Set up gcc environment - 3.4.5 (mingw-vista special r3) 
Cannot determine perl version info from lib/Net/SSLeay.pm 
Cannot determine license info from lib/Net/SSLeay.pm 
*** Could not find OpenSSL 
    If it's already installed, please set the OPENSSL_PREFIX environment 
    variable accordingly. If it isn't installed yet, get the latest version 
    from http://www.openssl.org/. 
Warning: No success on command[C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site 
] 
    FLORA/Net-SSLeay-1.35.tar.gz 
    C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK 
Running make test 
    Make had some problems, won't test 
Running make install 
    Make had some problems, won't install 
Running make for S/SU/SULLR/IO-Socket-SSL-1.31.tar.gz 
    Has already been unwrapped into directory C:\Perl\cpan\build\IO-Socket-SSL-1.3 
1-q3PROh 

    CPAN.pm: Going to build S/SU/SULLR/IO-Socket-SSL-1.31.tar.gz 

Warning: Prerequisite 'Net::SSLeay => 1.21' for 'SULLR/IO-Socket-SSL-1.31.tar.gz 
' failed when processing 'FLORA/Net-SSLeay-1.35.tar.gz' with 'writemakefile => N 
O 'C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site' returned status 512'. Cont 
inuing, but chances to succeed are limited. 
cp SSL.pm blib\lib\IO\Socket\SSL.pm 
    SULLR/IO-Socket-SSL-1.31.tar.gz 
    C:\Perl\site\bin\dmake.exe -- OK 
Running make test 
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 
'blib\arch')" t/*.t 
t/01loadmodule.t ........... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\bui 
ld\IO-Socket-SSL-1.31-q3PROh\blib\lib/IO/Socket/SSL.pm line 18. 
BEGIN failed--compilation aborted at C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PRO 
h\blib\lib/IO/Socket/SSL.pm line 18. 
Compilation failed in require at t/01loadmodule.t line 14. 
BEGIN failed--compilation aborted at t/01loadmodule.t line 14. 
t/01loadmodule.t ........... Dubious, test returned 2 (wstat 512, 0x200) 
Failed 4/4 subtests 
t/02settings.t ............. Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\bui 
ld\IO-Socket-SSL-1.31-q3PROh\blib\lib/IO/Socket/SSL.pm line 18. 
BEGIN failed--compilation aborted at C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PRO 
h\blib\lib/IO/Socket/SSL.pm line 18. 
Compilation failed in require at t/02settings.t line 4. 
BEGIN failed--compilation aborted at t/02settings.t line 4. 
t/02settings.t ............. Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/acceptSSL-timeout.t ...... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\bui 
ld\IO-Socket-SSL-1.31-q3PROh\blib\lib/IO/Socket/SSL.pm line 18. 
BEGIN failed--compilation aborted at C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PRO 
h\blib\lib/IO/Socket/SSL.pm line 18. 
Compilation failed in require at t/acceptSSL-timeout.t line 3. 
BEGIN failed--compilation aborted at t/acceptSSL-timeout.t line 3. 
t/acceptSSL-timeout.t ...... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/auto_verify_hostname.t ... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/auto_verify_ho 
stname.t line 4. 
BEGIN failed--compilation aborted at t/auto_verify_hostname.t line 4. 
t/auto_verify_hostname.t ... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/cert_no_file.t ........... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/cert_no_file.t 
line 14. 
BEGIN failed--compilation aborted at t/cert_no_file.t line 14. 
t/cert_no_file.t ........... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/compatibility.t .......... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\bui 
ld\IO-Socket-SSL-1.31-q3PROh\blib\lib/IO/Socket/SSL.pm line 18. 
BEGIN failed--compilation aborted at C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PRO 
h\blib\lib/IO/Socket/SSL.pm line 18. 
Compilation failed in require at t/compatibility.t line 5. 
BEGIN failed--compilation aborted at t/compatibility.t line 5. 
t/compatibility.t .......... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/connectSSL-timeout.t ..... no testlib at t/connectSSL-timeout.t line 3. 
t/connectSSL-timeout.t ..... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/core.t ................... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/core.t line 6. 

BEGIN failed--compilation aborted at t/core.t line 6. 
t/core.t ................... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/dhe.t .................... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/dhe.t line 11. 

BEGIN failed--compilation aborted at t/dhe.t line 11. 
t/dhe.t .................... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/inet6.t .................. Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/inet6.t line 5 
. 
BEGIN failed--compilation aborted at t/inet6.t line 5. 
t/inet6.t .................. Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/memleak_bad_handshake.t .. Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/memleak_bad_ha 
ndshake.t line 6. 
BEGIN failed--compilation aborted at t/memleak_bad_handshake.t line 6. 
t/memleak_bad_handshake.t .. Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/nonblock.t ............... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/nonblock.t lin 
e 6. 
BEGIN failed--compilation aborted at t/nonblock.t line 6. 
t/nonblock.t ............... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/readline.t ............... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/readline.t lin 
e 14. 
BEGIN failed--compilation aborted at t/readline.t line 14. 
t/readline.t ............... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/sessions.t ............... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/sessions.t lin 
e 5. 
BEGIN failed--compilation aborted at t/sessions.t line 5. 
t/sessions.t ............... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/start-stopssl.t .......... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\bui 
ld\IO-Socket-SSL-1.31-q3PROh\blib\lib/IO/Socket/SSL.pm line 18. 
BEGIN failed--compilation aborted at C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PRO 
h\blib\lib/IO/Socket/SSL.pm line 18. 
Compilation failed in require at t/start-stopssl.t line 4. 
BEGIN failed--compilation aborted at t/start-stopssl.t line 4. 
t/start-stopssl.t .......... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/startssl.t ............... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/startssl.t lin 
e 6. 
BEGIN failed--compilation aborted at t/startssl.t line 6. 
t/startssl.t ............... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/sysread_write.t .......... Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/sysread_write. 
t line 9. 
BEGIN failed--compilation aborted at t/sysread_write.t line 9. 
t/sysread_write.t .......... Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 
t/verify_hostname.t ........ Can't locate Net/SSLeay.pm in @INC (@INC contains: 
C:\Perl\cpan\build\IO-Socket-SSL-1.31-q3PROh\blib\lib C:\Perl\cpan\build\IO-Sock 
et-SSL-1.31-q3PROh\blib\arch C:/Perl/site/lib C:/Perl/lib .) at t/verify_hostnam 
e.t line 4. 
BEGIN failed--compilation aborted at t/verify_hostname.t line 4. 
t/verify_hostname.t ........ Dubious, test returned 2 (wstat 512, 0x200) 
No subtests run 

Test Summary Report 
------------------- 
t/01loadmodule.t   (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: Bad plan. You planned 4 tests but ran 0. 
t/02settings.t   (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/acceptSSL-timeout.t (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/auto_verify_hostname.t (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/cert_no_file.t   (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/compatibility.t  (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/connectSSL-timeout.t (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/core.t     (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/dhe.t     (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/inet6.t    (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/memleak_bad_handshake.t (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/nonblock.t    (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/readline.t    (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/sessions.t    (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/start-stopssl.t  (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/startssl.t    (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/sysread_write.t  (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
t/verify_hostname.t  (Wstat: 512 Tests: 0 Failed: 0) 
    Non-zero exit status: 2 
    Parse errors: No plan found in TAP output 
Files=18, Tests=0, 0 wallclock secs (0.08 usr + 0.00 sys = 0.08 CPU) 
Result: FAIL 
Failed 18/18 test programs. 0/0 subtests failed. 
dmake.exe: Error code 130, while making 'test_dynamic' 
    SULLR/IO-Socket-SSL-1.31.tar.gz 
    C:\Perl\site\bin\dmake.exe test -- NOT OK 
//hint// to see the cpan-testers results for installing this module, try: 
    reports SULLR/IO-Socket-SSL-1.31.tar.gz 
Running make install 
    make test had returned bad status, won't install without force 
Running make for C/CW/CWEST/Net-SMTP-SSL-1.01.tar.gz 
    Has already been unwrapped into directory C:\Perl\cpan\build\Net-SMTP-SSL-1.01 
-Qu1Nlt 

    CPAN.pm: Going to build C/CW/CWEST/Net-SMTP-SSL-1.01.tar.gz 

Warning: Prerequisite 'IO::Socket::SSL => ' for 'CWEST/Net-SMTP-SSL-1.01.tar.gz' 
failed when processing 'SULLR/IO-Socket-SSL-1.31.tar.gz' with 'make_test => NO' 
. Continuing, but chances to succeed are limited. 
cp lib/Net/SMTP/SSL.pm blib\lib\Net\SMTP\SSL.pm 
    CWEST/Net-SMTP-SSL-1.01.tar.gz 
    C:\Perl\site\bin\dmake.exe -- OK 
Running make test 
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 
'blib\arch')" t/*.t 
t/test.t .. 
# Failed test 'use Net::SMTP::SSL;' 
t/test.t .. 1/1 # at t/test.t line 2. 
#  Tried to use 'Net::SMTP::SSL'. 
#  Error: Can't locate IO/Socket/SSL.pm in @INC (@INC contains: C:\Perl\cpan 
\build\Net-SMTP-SSL-1.01-Qu1Nlt\blib\lib C:\Perl\cpan\build\Net-SMTP-SSL-1.01-Qu 
1Nlt\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\build\Net-SMTP-SS 
L-1.01-Qu1Nlt\blib\lib/Net/SMTP/SSL.pm line 8. 
# BEGIN failed--compilation aborted at C:\Perl\cpan\build\Net-SMTP-SSL-1.01-Qu1N 
lt\blib\lib/Net/SMTP/SSL.pm line 8. 
# Compilation failed in require at (eval 4) line 2. 
# BEGIN failed--compilation aborted at (eval 4) line 2. 
# Looks like you failed 1 test of 1. 
t/test.t .. Dubious, test returned 1 (wstat 256, 0x100) 
Failed 1/1 subtests 

Test Summary Report 
------------------- 
t/test.t (Wstat: 256 Tests: 1 Failed: 1) 
    Failed test: 1 
    Non-zero exit status: 1 
Files=1, Tests=1, 0 wallclock secs (0.02 usr + 0.00 sys = 0.02 CPU) 
Result: FAIL 
Failed 1/1 test programs. 1/1 subtests failed. 
dmake.exe: Error code 129, while making 'test_dynamic' 
    CWEST/Net-SMTP-SSL-1.01.tar.gz 
    C:\Perl\site\bin\dmake.exe test -- NOT OK 
//hint// to see the cpan-testers results for installing this module, try: 
    reports CWEST/Net-SMTP-SSL-1.01.tar.gz 
Running make install 
    make test had returned bad status, won't install without force 

抱歉我粘貼不作爲代碼只是想不出能做到這樣。

我現在imtalled,但我仍然得到錯誤

Warning: Prerequisite 'IO::Socket::SSL => ' for 'CWEST/Net-SMTP-SSL-1.01.tar.gz' 
failed when processing 'SULLR/IO-Socket-SSL-1.31.tar.gz' with 'make_test => NO' 
. Continuing, but chances to succeed are limited. 
cp lib/Net/SMTP/SSL.pm blib\lib\Net\SMTP\SSL.pm 
    CWEST/Net-SMTP-SSL-1.01.tar.gz 
    C:\Perl\site\bin\dmake.exe -- OK 
Running make test 
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 
'blib\arch')" t/*.t 
t/test.t .. 
# Failed test 'use Net::SMTP::SSL;' 
t/test.t .. 1/1 # at t/test.t line 2. 
#  Tried to use 'Net::SMTP::SSL'. 
#  Error: Can't locate IO/Socket/SSL.pm in @INC (@INC contains: C:\Perl\cpan 
\build\Net-SMTP-SSL-1.01-94zxyS\blib\lib C:\Perl\cpan\build\Net-SMTP-SSL-1.01-94 
zxyS\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\build\Net-SMTP-SS 
L-1.01-94zxyS\blib\lib/Net/SMTP/SSL.pm line 8. 
# BEGIN failed--compilation aborted at C:\Perl\cpan\build\Net-SMTP-SSL-1.01-94zx 
yS\blib\lib/Net/SMTP/SSL.pm line 8. 
# Compilation failed in require at (eval 4) line 2. 
# BEGIN failed--compilation aborted at (eval 4) line 2. 
# Looks like you failed 1 test of 1. 
t/test.t .. Dubious, test returned 1 (wstat 256, 0x100) 
Failed 1/1 subtests 

Test Summary Report 
------------------- 
t/test.t (Wstat: 256 Tests: 1 Failed: 1) 
    Failed test: 1 
    Non-zero exit status: 1 
Files=1, Tests=1, 0 wallclock secs (0.02 usr + 0.00 sys = 0.02 CPU) 
Result: FAIL 
Failed 1/1 test programs. 1/1 subtests failed. 
dmake.exe: Error code 129, while making 'test_dynamic' 
    CWEST/Net-SMTP-SSL-1.01.tar.gz 
    C:\Perl\site\bin\dmake.exe test -- NOT OK 
//hint// to see the cpan-testers results for installing this module, try: 
    reports CWEST/Net-SMTP-SSL-1.01.tar.gz 
Running make install 
    make test had returned bad status, won't install without force 

你怎麼粘貼像一個代碼的代碼? 對不起,我再次粘貼它壞。

+0

看起來您需要安裝OpenSSL,請參閱openssl.org。 – zoul 2009-11-22 19:16:28

+0

如果您想使代碼看起來像一樣,請選擇整個塊,然後按Ctrl-K。 – Geo 2009-11-22 19:41:20

回答

6

我假設你使用ActivePerl 5.8.8。 Add trouchelle.com repository。是否

ppm install IO-Socket-SSL 

它也可以用於版本5.10。其他儲存庫列表可用here,如果您的ppm在「選項」中足夠新鮮。

+0

+1中,因爲添加trouchelle.com存儲庫可能是OP需要知道的。 – Mike 2009-11-23 07:48:14

+0

好吧,它終於工作。感謝幫助 。 – 2009-11-23 19:30:39

1

我遇到了與Email :: Send :: Gmail完全相同的問題。我想設置一個簡單的腳本讓我的服務器在啓動/關閉時向我發送郵件。我最初選擇了Email :: Send :: Gmail,因爲perl已經安裝在服務器上了,但是我遇到了你描述的依賴性地獄(我發現沒有簡單的解決方案,即我必須逐個安裝不同的模塊,沒有找到一個簡單的方法來使這個安裝過程可重複,這是我的要求之一)。我用代替。我按照本教程解釋how to install and configure it for use with a GMail account

+0

通過使用'PAR :: Packer',你的依賴問題不會消失嗎? – Geo 2009-11-22 19:42:59

+0

有PPM可用:請參閱http://cpan.uwinnipeg.ca/search?query=Email%3A%3ASend%3A%3AGmail&mode=module – ysth 2009-11-22 19:49:35

+0

我不知道PAR:PAcker。我的服務器運行Ubuntu,我習慣使用apt-get來安裝軟件。另一方面,我發現安裝perl模塊非常困難。 – 2009-11-22 19:54:08

3

你是如何安裝的?看起來你正在嘗試手動完成,這意味着你必須自己處理所有的依賴關係。看起來您正在使用ActiveState,因此請使用ppm工具爲您做到這一點(請參閱the ppm FAQ)。

C:/> ppm install IO::Socket::SSL 

Gmail使用郵件安全通道,因此您需要SSL。這是一箇中等長度的依賴關係,可以導回非Perl庫。因此,這不是你想要手動做的事情。再次,讓ppm工具爲你做。

您可以看到Net :: SMTP :: SSL和IO :: Socket :: SSL鏈。您還需要Crypt::SSLeay需要OpenSSL庫。

如果您在使用ppm時遇到問題,請發佈另一個問題並告訴我們您正在使用的ActivePerl版本等,並告訴我們您的ppm配置文件。

如果你不特別關心ActivePerl,你也可以使用Strawberry Perl,它允許你使用普通的CPAN工具鏈。它帶有一個C編譯器和其他支持工具。你還需要安裝OpenSSL的,但之後,它只是一個電話cpan

% cpan IO::Socket::SSL 

注意,你不一定能混用的ActivePerl和草莓Perl的編譯庫。他們可能使用不同的C編譯器,而這些二進制文件可能有不同的結構和要求。有關詳細信息,請參閱註釋並小心使用哪種編譯器。

+0

混合編譯器是可能的。 'ppm install gcc'爲ActivePerl安裝gcc :) – 2009-11-22 22:37:12

+0

儘管如此,仍然不能使用不同編譯器編譯的庫進行交互操作嗎? – 2009-11-22 22:44:49

+0

@brian d foy:如果有問題的gcc是mingw,它使用visual C運行庫,所以可以很好地與activestate編譯配合使用。另一方面,cygwin編譯的庫將引入cygwin C運行庫(等等),並且在鏈接到非cygwin的東西時不會可靠地工作。 – ysth 2009-11-23 01:31:37

相關問題