sprakash has asked for the wisdom of the Perl Monks concerning the following question:

Hi People! I hope all of you are doing well today.

Anyways, I've spent the past 7-8 hours trying to install LWP::UserAgent and a SSL to use with it, and after NUMEROUS times of installing and uninstalling different versions of Activestate Perl and libwww-perlXXX, etc. I was finally able to get LWP::UserAgent working properly under ActivePerl 5.8.0 (I am current running Windows XP and IIS).

I tried installing Net::SSLeay and Crypt::SSLeay numerous times also on different versions on Perl but am getting the same errors (below). I have the BINARY distribution of OpenSSL installed in my D:\Perl\OpenSSL folder (executable 'openssl.exe' is in D:\Perl\OpenSSL\bin).

The errors I get while installing Net::SSLeay (Ver 1.21) are -

(PMAKE)
Reading D:/Perl/site/lib/Make.pm Reading D:\Perl\temp\Net_SSLeay.pm-1.21\makefile Ignore '$(PM_TO_BLIB)' Ignore '<<' Ignore '@$(TOUCH) $@' Reading D:/Perl/site/lib/Make.pm Reading D:\Perl\temp\Net_SSLeay.pm-1.21\Net-SSLeay-Handle-0.50\Makefil +e Ignore '$(PM_TO_BLIB)' Ignore '<<' Ignore '@$(TOUCH) $@' Make all -nologo Cannot `Make' - no target -nologo at D:/Perl/site/lib/Make.pm line 116 +4. Code 512 from cd Net-SSLeay-Handle-0.50 && D:\Perl\bin\perl.exe D:\Per +l\bin\pmak e -f Makefile all -nologo at D:/Perl/site/lib/Make.pm line 265.


(NMAKE)
D:\Perl\temp\Net_SSLeay.pm-1.21>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -c -ID:\Perl\OpenSSL/include -ID:\Perl\OpenSSL/inc32 -nol +ogo -Gf -W 3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -D +PERL_IMPLI CIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -O + -DVERSI ON=\"1.21\" -DXS_VERSION=\"1.21\" "-ID:\Perl\lib\CORE" -DPERL5 SSLe +ay.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINXP\system32\cmd.exe' : return code ' +0x1' Stop.



And


The errors I get while installing Crypt::SSLeay (Ver .43 and .45) are -

(PMAKE)
D:\Perl\temp\Crypt-SSLeay-0.45>pmake Reading D:/Perl/site/lib/Make.pm Reading D:\Perl\temp\Crypt-SSLeay-0.45\makefile Ignore '$(PM_TO_BLIB)' Ignore '<<' Ignore '@$(TOUCH) $@' cl -c -ID:\Perl\OpenSSL\include -ID:\Perl\OpenSSL\inc32 -nologo -Gf - +W3 -MD -DN DEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPL +ICIT_CONTE XT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -DNDEBUG + -O1 -DV ERSION=\"0.45\" -DXS_VERSION=\"0.45\" "-ID:\Perl\lib\CORE" SSLeay.c 'cl' is not recognized as an internal or external command, operable program or batch file. Code 256 from cl -c -ID:\Perl\OpenSSL\include -ID:\Perl\OpenSSL\inc32 + -nologo - Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRY +PT -DPERL_ IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFI +X -MD -DND EBUG -O1 -DVERSION=\"0.45\" -DXS_VERSION=\"0.45\" "-ID:\Perl\lib\CO +RE" SSLe ay.c at D:/Perl/site/lib/Make.pm line 265.


(NMAKE)
D:\Perl\temp\Crypt-SSLeay-0.45>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cp lib/Crypt/SSLeay/X509.pm blib\lib\Crypt/SSLeay/X509.pm cp lib/Net/SSL.pm blib\lib\Net/SSL.pm cp SSLeay.pm blib\lib\Crypt\SSLeay.pm cp lib/Crypt/SSLeay/Conn.pm blib\lib\Crypt/SSLeay/Conn.pm cp lib/Crypt/SSLeay/CTX.pm blib\lib\Crypt/SSLeay/CTX.pm cp lib/Crypt/SSLeay/MainContext.pm blib\lib\Crypt/SSLeay/MainContext.p +m cp lib/Crypt/SSLeay/Err.pm blib\lib\Crypt/SSLeay/Err.pm cl -c -ID:\Perl\OpenSSL\include -ID:\Perl\OpenSSL\inc32 -nol +ogo -Gf -W 3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -D +PERL_IMPLI CIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD + -DNDEBUG -O1 -DVERSION=\"0.45\" -DXS_VERSION=\"0.45\" "-ID:\Perl\lib\CORE" + SSLeay. c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINXP\system32\cmd.exe' : return code ' +0x1' Stop.





PLEASE PLEASE PLEASE help me out..... am totally stumped and ready to pull my hair out. Would greatly appreciate it. Thanks, Surya

Replies are listed 'Best First'.
Re: Problem installing Net::SSLeay and Crypt::SSLeay ..... please help :-D
by PodMaster (Abbot) on Dec 24, 2002 at 11:42 UTC
    You can't go trying whatever flavor of make you like, all willy nilly like that, it won't work.
    You must use what perl -V:make says.

    Why not use PPM? (ignorance, or you need a version not available).

    Now as to your actual problem, you don't have have the compiler `cl', with which your version of perl was compiled.

    Try  perl -V:cc and  perl -V to see more info.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      Why not use PPM?

      PodMaster - do you know where the Net::SSLeay PPD is located then? Both the Activestate and Randy Kobes' repositories do not appear to contain Net::SSLeay unfortunately.

      -- vek --
        vek, Since PodMaster passed on the goodwill to me, I'll pass it on to you ....... He gave a repository for Perl 5.8.0 which has the Net::SSLeay module .... http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 Hope this helps. Take care, Surya
      PodMaster, You are THE MAN! Thanks a ton! Everything you told me worked...... appreciate your help. Thanks and have a Merry Christmans ....... I know I will now (grin). Later, Surya
      PM, Thanks for the reply. Here's the info I got on doing what you advised -

      C:\Documents and Settings\Surya Prakash>perl -V:make make='nmake'; C:\Documents and Settings\Surya Prakash>perl -V:cc cc='cl';
      Also, I tried CPAN to install the files and I get the same errors as above (the NMAKE ones).
      Where should I go from here? Thanks, Surya
        1. Answer all my questions (most importantly, why aren't you using PPM!!!!?)
        2. Get a compiler since you don't have one. If you want to continue using the perl binary you currently have, you will have to buy MSVS (aka cl). You can download other compilers for free (gcc,borland), but that means you'll have to recompile perl (no biggie).

         

        You cannot be selective in the advice you follow (especially with so little advice).

        MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
        ** The Third rule of perl club is a statement of fact: pod is sexy.