Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Par::packer

101 views
Skip to first unread message

jis

unread,
Jun 19, 2013, 9:45:05 AM6/19/13
to
Hello guys,

it has been really tough to get this working and not still working..

the following are the thing i intend to do

1. Create distributable executable with par::packer for 32 bit platform.
(final destination: windows 7 32 bit
2. I have following in my script
use Net::SFTP::Foreign;
use Net::SFTP::Foreign::Constants qw (:flags);
use Net::SMTP;
use File::Basename;
use Sys::Hostname;
use File::Compare;

3. I use strawberry perl - strawberry-perl-5.18.0.1-32bit.msi.
4. i have all the required modules installed.

the following are the issues i have.


>Ftransfer
Unable to load backend Net_SSH2: Can't locate Net/SFTP/Foreign/Backend/Net_SSH2.
pm in @INC (@INC contains: CODE(0x14db19c) C:\TEMP\par-61676972616a\cache-fc745c
7bdab45bea5e1bc4f536f37a02378efa83\inc\lib C:\TEMP\par-61676972616a\cache-fc745c
7bdab45bea5e1bc4f536f37a02378efa83\inc CODE(0x12d447c) CODE(0x12d480c)) at (eval
21) line 1.
at script/Ftransfer.pl line 26.
CODE(0x14db19c) C:\TEMP\par-61676972616a\cache-fc745c7bdab45bea5e1bc4f536f37a023
78efa83\inc\lib C:\TEMP\par-61676972616a\cache-fc745c7bdab45bea5e1bc4f536f37a023
78efa83\inc CODE(0x12d447c) CODE(0x12d480c)



the following is what i observed.

1. I can get it working with strawberry 64 bit perl on a windows7 64 bit. but i need a 32 bit target file.

2. I see my @INC is good and environment variables are properly set( as much i know).

3. As soon as I run the exe ..@INC is on C:\temp. But my modules are in C:\strawberry\perl

let me know.
thanks,
jis

Ben Morrow

unread,
Jun 19, 2013, 6:22:54 PM6/19/13
to

Quoth jis <jism...@gmail.com>:
>
> 1. Create distributable executable with par::packer for 32 bit platform.
> (final destination: windows 7 32 bit
> 2. I have following in my script
> use Net::SFTP::Foreign;
> use Net::SFTP::Foreign::Constants qw (:flags);
> use Net::SMTP;
> use File::Basename;
> use Sys::Hostname;
> use File::Compare;
>
> 3. I use strawberry perl - strawberry-perl-5.18.0.1-32bit.msi.
> 4. i have all the required modules installed.
>
> the following are the issues i have.
>
> >Ftransfer
> Unable to load backend Net_SSH2: Can't locate
> Net/SFTP/Foreign/Backend/Net_SSH2. pm in @INC (@INC contains:

This looks like something dynamically loaded by Net::SFTP::Foreign. You
may need to tell pp to include it explicitly.

> 1. I can get it working with strawberry 64 bit perl on a windows7 64
> bit. but i need a 32 bit target file.

What is different about the two PARs? If you unzip them both, does the
64bit PAR include the module mentioned above, or does it not need to
load it for some reason?

> 2. I see my @INC is good and environment variables are properly set( as
> much i know).
>
> 3. As soon as I run the exe ..@INC is on C:\temp. But my modules are in
> C:\strawberry\perl

That's expected: that's the whole point of a PAR stand-alone exe. It
doesn't use your Strawberry installation at all.

Ben

jis

unread,
Jun 20, 2013, 2:09:50 PM6/20/13
to
THere is no difference in version par::packer installed in windows 7 and windows xp

How do i include external modules using par::packer??
i have tried pp -M Net::SFTP -o test.exe test.pl

it gave me an output..but is not executing..

what will be the best solution?

thanks,
jis
0 new messages