Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: pp can't pack MongoDB and Inline Module

by Alle (Novice)
on Sep 17, 2012 at 13:31 UTC ( #994034=note: print w/replies, xml ) Need Help??


in reply to Re: pp can't pack MongoDB and Inline Module
in thread pp can't pack MongoDB and Inline Module

I test:

pp -x test.pl

test.pl's content:

use MongoDB; print "hi\n";

It's so slowly, So i have to 'ctrl+c' interrupted! so, "pp -x test.exe test.pl" will also slowly and can't promit success!

Replies are listed 'Best First'.
Re^3: pp can't pack MongoDB and Inline Module
by marto (Archbishop) on Sep 17, 2012 at 13:41 UTC

    So rather than wait for pp -x to do it's thing you've killed the process? Consider specifically packaging the module, see -M from the documentation.

      thank you! i already give up do this, i use pp and PDK-Pro(perlapp) create a exe file, all failure failure failure when use MongoDB .....

        I've confirmed this issue. It does take a very long time to create an exe from the basic script you posted. Checking the list of dependencies, and therefore packaged modules I notice Any::Moose which then requires Moose or Mouse depending on your setup. I have no experience of using either, however I've been told by others that Moose (at least) is pretty bloated. This may not be true, but either way there's a large dependency list from the simple script below.

        For clarification my setup is Windows XP SP3 (I know, it's a wortk thing), Strawberry Perl 5.12.3, PAR::Packer 1.013. Older Core 2 Duo laptop, 1GB RAM.

        The script I used:

        #!/usr/bin/perl use strict; use warnings; use MongoDB; print "hi\n";

        The pp command pp -v -o mongodb.exe -x mongodb.pl (cut down from vvv and vv in an attempt to generate output less than 233KB). mongodb.exe is eventually created, and produces the output expected. There's nothing obvious to me in the logs (vvv, vv, v) as to what the hold up was. Perhaps someone else has packaged MongoDB and has more experience to draw from.

        thank you! i already give up do this, i use pp and PDK-Pro(perlapp) create a exe file, all failure failure failure when use MongoDB .....

        failures are always informative

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994034]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-07-23 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (472 votes). Check out past polls.

    Notices?