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

I have some simple code that checks a POP box, looks for mail from a particular address with a particular subject, then looks through the body of that mail for a URL. The URL is always for HTTPS. The script was going to fetch that page, but I get an error saying Crypt::SSLeay is not available. I fire up PPM. PPM can't install it because PPM can't find it.

I've tried to be good and hunt. I haven't a clue, but the only repositories that PPM is using are ActiveState repositories. ActiveState doesn't have Crypt listed in its documentation.

Can I install Crypt::SSLeary on Windows? If not, is there another package that will work? If so, how?

Replies are listed 'Best First'.
Re: LWP & HTTPS with ActivePerl
by shenme (Priest) on Oct 26, 2004 at 04:19 UTC
      Sorry, I used the mild-mannered, alter-ego search. And I never seem to enter the correct terms. This will help a lot, thanks.
        As I had to admit on the Chatterbox, I also often take the long road around while searching, before somehow getting back on track to answering the original question.

        What is really strange is that questions as posted often have exactly the search keywords needed, when the problem is described well. Perhaps this is just another example of how talking out the question gets you to the answer?

Re: LWP & HTTPS with ActivePerl
by PodMaster (Abbot) on Oct 26, 2004 at 01:32 UTC
    I fire up PPM. PPM can't install it because PPM can't find it.
    See PPM::Repositories for more repositories. One of them will have Crypt::SSLeay.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: LWP & HTTPS with ActivePerl
by raptnor2 (Beadle) on Oct 26, 2004 at 02:32 UTC
    LWP will automatically try loading Crypt::Leay (or Net::SSL) when it encounters SSL files. I've have enormous problems with both on Windows machines.

    If you're just trying to download the file or read the contents you may want to look at the Win32::Internet module instead. It gives you access to the features of the Windows wininet.dll.

    Cheers,

    John

Re: LWP & HTTPS with ActivePerl
by inman (Curate) on Oct 26, 2004 at 10:58 UTC
Re: LWP & HTTPS with ActivePerl
by SamCG (Hermit) on Oct 26, 2004 at 12:20 UTC
    You may also find you need SSL installed on your computer, openssl (sorry, misplaced the URL, but you should be able to google it) is an easy and practical choice.
      I think OpenSSL is already installed. cURL is installed, and I think OpenSSL was installed with it. We'll see.
        Installing the PPD that I mentioned earlier will also install the two DLLs required for SSL. It is probably best if you don't have OpenSSL installed (or at least in your PATH) since you will get DLL version issues.