On Fri, Jul 21, 2017 at 2:29 PM, RAPPAZ Francois via par <par@perl.org>
wrote:

> Run on a pc without perl installed I'm getting the error
>
> Error GETing https://services.rero.ch/item/1001528198/rero-number: Can't
> load 'C:\Users\zinaouih\AppData\Local\Temp\par-7a696e616f756968\
> cache-d34012c84b0014f269b7080f9a8969871097584f\cb0163b7.xs.dll' for
> module Net::SSLeay: load_file:Le module specifie est introuvable
> (LWP::Protocol::https not installed) at script/reroid.pl line 18.
>

Which version of perl, PAR::Packer and Module::ScanDeps are you using?

I can't reproduce this (Linux, perl 5.24.1, PAR::Packer 1.037,
Module::ScanDeps 1.23) with a naive

pp -o foo.exe -E 'use LWP::UserAgent; say LWP::UserAgent->new()->get("
https://www.google.com";)->content;'

(I double-checked that running foo.exe doesn't use any installed perl
stuff).
The problem is probably Net/SSLeay/SSLeay.xs.dll which most likely links
against some libssl*.dll and libcrypto*.dll (from OpenSSL).
You can check this with

objdump -ax .../Net/SSLeay/SSLeay.xs.dll | grep "DLL Name"

Find these and include them with "-I".

On a side note: your module list looks partially bogus to me

-l C:/strawberry/perl/lib/auto/PerlIO/scalar/scalar.xs.dll
>
> -l C:/strawberry/perl/lib/auto/Storable/Storable.xs.dll
>

It's never necessary to explicitly include the "glue" DLLs for a perl
module if the module itself is included implicitly or explicitly as with

-M PerlIO/scalar.pm
>
> -M Storable.pm
>

And these are always included:

-M PerlIO.pm
> -M PerlIO/scalar.pm
>

The "-M Foo/Bar.pm" syntax is deprecated, please use "-M Foo::Bar".

Cheers, Roderich

Reply via email to