in reply to Email::Send::Gmail with Cygwin

cpan>look Email::Send ... perl Makefile.PL make install UNINST=1
, or cpan>i --force Email::Send

Replies are listed 'Best First'.
Re^2: Email::Send::Gmail with Cygwin
by JDylan (Initiate) on Nov 20, 2008 at 05:09 UTC
    Thanks for the response. Using that idea, I ran these commands, as they seemed needed:
    cpan -fi Email::Send cpan -fi Email::Simple cpan -fi Return::Value cpan -fi Email::Address cpan -fi Net::SMTP::SSL cpan -fi IO::Socket::SSL
    all of which seemed to install successfully, I then tried to run the program again, and I got:
    $ ./gmailpop.pl Can't locate Net/SSLeay.pm in @INC (@INC contains: /usr/lib/perl5/5.10 +/i686-cygw + in /usr/lib +/perl5/5.10 /usr/lib/perl5/site_perl/5.10/i686-cygwin /usr/lib/perl5/ + + site_perl/5.10 /usr/l +ib/perl5/vendor_perl/5.10/i686-cygwin /usr/lib/perl5/vendor + + _perl/5.10 /usr/lib/perl5/vendo +r_perl/5.10 /usr/lib/perl5/site_perl/5.8 /usr/lib + + /perl5/vendor_perl/5.8 .) at /usr/lib/per +l5/site_perl/5.10/IO/Socket/SSL.pm line + + 18. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.10/IO/ +Socket/SSL + .pm line 18 +. Compilation failed in require at /usr/lib/perl5/site_perl/5.10/Net/SMT +P/SSL.pm l + ine 8. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.10/Net +/SMTP/SSL. + pm line 8. Compilation failed in require at /usr/lib/perl5/site_perl/5.10/Email/S +end/Gmail. + pm line 6. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.10/Ema +il/Send/Gm + ail.pm line + 6. Compilation failed in require at ./gmailpop.pl line 6. BEGIN failed--compilation aborted at ./gmailpop.pl line 6.
    So, similiar to above, I type $ cpan -fi Net::SSLeay and I get this error, which is a dead end for me. Any further ideas?
    $ cpan -if Net::SSLeay CPAN: File::HomeDir loaded ok (v0.80) CPAN: Storable loaded ok (v2.18) Going to read /home/Josh/.cpan/Metadata Database was generated on Sat, 15 Nov 2008 23:26:55 GMT CPAN: YAML loaded ok (v0.66) Going to read /home/Josh/.cpan/build/ ...................................................................... +......DONE Found 52 old builds, restored the state of 52 Running install for module 'Net::SSLeay' Running make for F/FL/FLORA/Net-SSLeay-1.35.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Net +-SSLeay-1. + 35-1m1tqe -- No Makefile created, won't make Running make test Make had some problems, won't test Running make install Make had some problems, won't install
    P.S I also tried cpan -r Net::SSLeay, but that didn't work either. Here's what I got
    $ cpan -r Net::SSLeay Recompiling -- ignoring other arguments Recompiling dynamically-loaded extensions CPAN: File::HomeDir loaded ok (v0.80) CPAN: Storable loaded ok (v2.18) Going to read /home/Josh/.cpan/Metadata Database was generated on Sat, 15 Nov 2008 23:26:55 GMT CPAN: YAML loaded ok (v0.66) Going to read /home/Josh/.cpan/build/ ...................................................................... +......DONE Found 52 old builds, restored the state of 52 ................................................... CPAN: Recompiling A/AM/AMS/Storable-2.18.tar.gz Running make for A/AM/AMS/Storable-2.18.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Sto +rable-2.18-ih5nAK Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling A/AR/ARJAY/Compress-Bzip2-2.09.tar.gz Running make for A/AR/ARJAY/Compress-Bzip2-2.09.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Com +press-Bzip2-2.09-1PAhRt Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling C/CH/CHORNY/Win32API-File-0.1100.zip Running make for C/CH/CHORNY/Win32API-File-0.1100.zip Has already been unwrapped into directory /home/Josh/.cpan/build/Win +32API-File-0.1100-BDOkpN Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling D/DA/DANKOGAI/Encode-2.26.tar.gz Running make for D/DA/DANKOGAI/Encode-2.26.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Enc +ode-2.26-yIQMIS Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling D/DU/DURIST/Proc-ProcessTable-0.45.tar.gz Running make for D/DU/DURIST/Proc-ProcessTable-0.45.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Pro +c-ProcessTable-0.45-yfoFZq Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling G/GA/GAAS/Digest-MD5-2.38.tar.gz Running make for G/GA/GAAS/Digest-MD5-2.38.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Dig +est-MD5-2.38-oCcm9k Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling G/GA/GAAS/Digest-SHA1-2.11.tar.gz Running make for G/GA/GAAS/Digest-SHA1-2.11.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Dig +est-SHA1-2.11-Zl5Ejx Has already been made Running make test Has already been tested successfully Running make install Already done CPAN: Recompiling G/GA/GAAS/HTML-Parser-3.56.tar.gz Running make for G/GA/GAAS/HTML-Parser-3.56.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/HTM +L-Parser-3.56-TmflfF Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling G/GA/GAAS/MIME-Base64-3.07.tar.gz Running make for G/GA/GAAS/MIME-Base64-3.07.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/MIM +E-Base64-3.07-30LF1_ Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling G/GB/GBARR/IO-1.2301.tar.gz Running make for G/GB/GBARR/IO-1.2301.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/IO- +1.2301-UKHH6B Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz Running make for G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Sca +lar-List-Utils-1.19-cYyhkB Has already been made Running make test /usr/bin/perl5.10.0.exe "-MExtUtils::Command::MM" "-e" "test_harness(0 +, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/00version.......ok t/blessed.........ok t/dualvar.........ok t/first...........ok t/isvstring.......ok t/lln.............ok t/max.............ok t/maxstr..........ok t/min.............ok t/minstr..........ok t/openhan.........ok t/p_blessed.......ok t/p_first.........ok t/p_lln...........ok t/p_max...........ok t/p_maxstr........ok t/p_min...........ok t/p_minstr........ok t/p_openhan.......ok t/p_readonly......ok t/p_reduce........ok t/p_refaddr.......ok t/p_reftype.......ok t/p_shuffle.......ok t/p_sum...........ok t/p_tainted.......ok t/proto...........ok t/readonly........ok t/reduce..........ok t/refaddr.........ok t/reftype.........ok t/shuffle.........ok t/sum.............ok t/tainted.........ok t/weak............1/22 # Failed test in t/weak.t at line 195. # Looks like you failed 1 test of 22. t/weak............ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/22 subtests Test Summary Report ------------------- t/weak.t (Wstat: 256 Tests: 22 Failed: 1) Failed test: 22 Non-zero exit status: 1 Files=35, Tests=380, 6 wallclock secs ( 0.09 usr 0.09 sys + 4.52 cu +sr 1.25 csys = 5.96 CPU) Result: FAIL Failed 1/35 test programs. 1/380 subtests failed. make: *** [test_dynamic] Error 1 GBARR/Scalar-List-Utils-1.19.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports GBARR/Scalar-List-Utils-1.19.tar.gz Running make install make test had returned bad status, won't install without force CPAN: Recompiling G/GS/GSAR/Alias-2.32.tar.gz Running make for G/GS/GSAR/Alias-2.32.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Ali +as-2.32-V8mO5C Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling H/HA/HAYASHI/Term-ReadLine-Gnu-1.17a.tar.gz Running make for H/HA/HAYASHI/Term-ReadLine-Gnu-1.17a.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Ter +m-ReadLine-Gnu-1.17-EqKZRG '/usr/bin/perl5.10.0.exe Makefile.PL' returned status 512, won't mak +e Running make test Make had some problems, won't test Running make install Make had some problems, won't install CPAN: Recompiling I/IL/ILYAM/Data-Dumper-2.121.tar.gz Running make for I/IL/ILYAM/Data-Dumper-2.121.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Dat +a-Dumper-2.121-SL42dN Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling I/IL/ILYAZ/modules/DProf-19990108.tar.gz Running make for I/IL/ILYAZ/modules/DProf-19990108.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/DPr +of-19990108-tdZbF0 Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling I/IL/ILYAZ/modules/Devel-Peek-0.96.tar.gz Running make for I/IL/ILYAZ/modules/Devel-Peek-0.96.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Dev +el-Peek-0.96-kUBrmu Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling J/JD/JDB/Win32-0.38.tar.gz Running make for J/JD/JDB/Win32-0.38.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Win +32-0.38-ihuwfM Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling J/JD/JDHEDDEN/threads-1.71.tar.gz Running make for J/JD/JDHEDDEN/threads-1.71.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/thr +eads-1.71-n93bAW '/usr/bin/perl5.10.0.exe Makefile.PL' returned status 512, won't mak +e Running make test Make had some problems, won't test Running make install Make had some problems, won't install CPAN: Recompiling J/JD/JDHEDDEN/threads-shared-1.26.tar.gz Running make for J/JD/JDHEDDEN/threads-shared-1.26.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/thr +eads-shared-1.26-HSlxLp '/usr/bin/perl5.10.0.exe Makefile.PL' returned status 512, won't mak +e Running make test Make had some problems, won't test Running make install Make had some problems, won't install CPAN: Recompiling J/JH/JHI/Time-HiRes-1.9715.tar.gz Running make for J/JH/JHI/Time-HiRes-1.9715.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Tim +e-HiRes-1.9715-FQDMZy Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling J/JS/JSTOWE/TermReadKey-2.30.tar.gz Running make for J/JS/JSTOWE/TermReadKey-2.30.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Ter +mReadKey-2.30-HD_U_N Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling M/MA/MARKM/Text-Soundex-3.03.tar.gz Running make for M/MA/MARKM/Text-Soundex-3.03.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Tex +t-Soundex-3.03-HItKtm Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling M/MH/MHX/Devel-PPPort-3.14.tar.gz Running make for M/MH/MHX/Devel-PPPort-3.14.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Dev +el-PPPort-3.14-5dSf4H Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling M/MH/MHX/IPC-SysV-2.00.tar.gz Running make for M/MH/MHX/IPC-SysV-2.00.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/IPC +-SysV-2.00-EfIRmc Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling M/MS/MSERGEANT/Time-Piece-1.13.tar.gz Running make for M/MS/MSERGEANT/Time-Piece-1.13.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Tim +e-Piece-1.13-11NjqD Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling M/MS/MSERGEANT/XML-Parser-2.36.tar.gz Running make for M/MS/MSERGEANT/XML-Parser-2.36.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/XML +-Parser-2.36-wzOMbx Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling M/MS/MSHELOR/Digest-SHA-5.47.tar.gz Running make for M/MS/MSHELOR/Digest-SHA-5.47.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Dig +est-SHA-5.47-f4m1F6 Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling N/NW/NWCLARK/perl-5.8.9-RC1.tar.gz Running make for N/NW/NWCLARK/perl-5.8.9-RC1.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/per +l-5.8.9-RC1-KcdJaq '/home/Josh/.cpan/build/perl-5.8.9-RC1-KcdJaq/Configure' returned st +atus 256, won't make Running make test Make had some problems, won't test Running make install Make had some problems, won't install CPAN: Recompiling O/OL/OLAF/Net-DNS-0.63.tar.gz Running make for O/OL/OLAF/Net-DNS-0.63.tar.gz CPAN.pm: Going to build O/OL/OLAF/Net-DNS-0.63.tar.gz The libraries needed to support IPv6 transport have not been found. You will need recent versions of the IO::Socket::INET6 and Socket6 libraries (from CPAN). Testing if you have a C compiler and the needed header files.... You have a working compiler. You appear to be directly connected to the Internet. I have some test +s that try to query live nameservers. Do you want to enable these tests? [y] Checking if your kit is complete... Looks good Warning: prerequisite Net::IP 1.2 not found. Writing Makefile for Net::DNS ---- Unsatisfied dependencies detected during ---- ---- OLAF/Net-DNS-0.63.tar.gz ---- Net::IP [requires] Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites CPAN: Recompiling P/PA/PAJAS/XML-LibXML-1.69.tar.gz Running make for P/PA/PAJAS/XML-LibXML-1.69.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/XML +-LibXML-1.69-Bnidr2 -- No Makefile created, won't make Running make test Make had some problems, won't test Running make install Make had some problems, won't install CPAN: Recompiling P/PH/PHISH/XML-LibXML-Common-0.13.tar.gz Running make for P/PH/PHISH/XML-LibXML-Common-0.13.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/XML +-LibXML-Common-0.13-cJcQr5 '/usr/bin/perl5.10.0.exe Makefile.PL' returned status 512, won't mak +e Running make test Make had some problems, won't test Running make install Make had some problems, won't install CPAN: Recompiling P/PM/PMQS/Compress-Raw-Bzip2-2.015.tar.gz Running make for P/PM/PMQS/Compress-Raw-Bzip2-2.015.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Com +press-Raw-Bzip2-2.015-GVNykV Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling P/PM/PMQS/Compress-Raw-Zlib-2.015.tar.gz Running make for P/PM/PMQS/Compress-Raw-Zlib-2.015.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Com +press-Raw-Zlib-2.015-OdhGo4 Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling P/PM/PMQS/DB_File-1.817.tar.gz Running make for P/PM/PMQS/DB_File-1.817.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/DB_ +File-1.817-HpZpzy Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling P/PM/PMQS/Filter-1.34.tar.gz Running make for P/PM/PMQS/Filter-1.34.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Fil +ter-1.34-o46wP2 Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling R/RO/ROBIN/PadWalker-1.7.tar.gz Running make for R/RO/ROBIN/PadWalker-1.7.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Pad +Walker-1.7-hU8KX2 Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling S/SA/SADAHIRO/Unicode-Normalize-1.02.tar.gz Running make for S/SA/SADAHIRO/Unicode-Normalize-1.02.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Uni +code-Normalize-1.02-xOpzxS Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling S/SA/SAPER/Sys-Syslog-0.27.tar.gz Running make for S/SA/SAPER/Sys-Syslog-0.27.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Sys +-Syslog-0.27-Upr4l8 Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible CPAN: Recompiling S/SM/SMUELLER/PathTools-3.29.tar.gz Running Build for S/SM/SMUELLER/PathTools-3.29.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Pat +hTools-3.29-_5C9X8 Could not make: Unknown error Running Build test Can't test without successful make Running Build install Make had returned bad status, install seems impossible CPAN: Recompiling T/TE/TELS/math/Math-BigInt-FastCalc-0.19.tar.gz Running make for T/TE/TELS/math/Math-BigInt-FastCalc-0.19.tar.gz Has already been unwrapped into directory /home/Josh/.cpan/build/Mat +h-BigInt-FastCalc-0.19-CfhsqD Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
    Any ideas? I'm no perl guru and this has just got me scratching my head.

      Hi,

      Do you have C compiler and make?

      I would recommend you to use Strawberry Perl

      Regards,

      fmerges at irc.freenode.net
        Hi, Cygwin's GCC and Cygwin's make. I will try strawberry perl.
        I get a similar error with Strawberry perl:
        ... Warning: Prerequisite 'Net::SMTP::SSL => 0' for 'LBROCARD/Email-Send-G +mail-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:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/pod....skipped: Test::Pod 1.14 required for testing POD: Can't locat +e Test/Pod .pm in @INC (@INC contains: C:\strawberry\cpan\build\Email-Send-Gmail- +0.33-gadhk d\blib\lib C:\strawberry\cpan\build\Email-Send-Gmail-0.33-gadhkd\blib\ +arch C:\st rawberry\cpan\build\Email-Send-Gmail-0.33-gadhkd\blib\lib C:\strawberr +y\cpan\bui ld\Email-Send-Gmail-0.33-gadhkd\blib\arch C:/STRAWB~1/perl/lib C:/STRA +WB~1/perl/ site/lib) at (eval 3) line 2. Files=1, Tests=0, 0 wallclock secs ( 0.05 usr + 0.00 sys = 0.05 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
        Can anyone try installing this package on their system? I'm getting the impression it's just broken.
      Yeah, something appears to be broken with your cpan config. I'd try switching to cpanp, and if that doesn't work (not likely), I would install every prerequisite manually.
        It's very strange though. I have tried installing it both through Cygwin's Perl and through Strawberry perl (completely clearing the other perl off my system when trying), and both fail at the same place, Net::SSLeay. I'm trying cpanp now. I'll let you guys know how it turns out. Thanks for all the help.

        Edit: CpanP failed to install.
        Running make install make test had returned bad status, won't install without force Failed during this command: GAAS/Digest-MD5-2.38.tar.gz : make NO AUDREYT/Module-Signature-0.55.tar.gz : writemakefile NO 'C:\s +trawberry\ perl\bin\perl.exe Makefile.PL' returned status 65280 JDB/Win32-Process-0.14.tar.gz : make NO RSOD/IPC-Run-0.80.tar.gz : make_test NO JDB/Win32-Registry-0.10.tar.gz : make NO OLAF/Net-DNS-0.63.tar.gz : make NO KANE/Archive-Extract-0.28.tar.gz : make_test NO