Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Module Static.pm not found when using perl packer

by Bloehdian (Beadle)
on Jul 23, 2020 at 14:35 UTC ( [id://11119707]=note: print w/replies, xml ) Need Help??


in reply to Re: Module Static.pm not found when using perl packer
in thread Module Static.pm not found when using perl packer

Hello again,

o.k., first with regard to the version stuff:

[user@server bin]$ perl -E 'use pp; say $INC{"pp.pm"}; say $pp::VERSIO +N;' /usr/local/share/perl5/pp.pm 1.050 [user@server bin]$ which pp /usr/local/bin/pp [user@server bin]$ pp -V PAR Packager, version 1.050 (PAR version 1.016) Copyright 2002-2009 by Audrey Tang <cpan@audreyt.org> Neither this program nor the associated "parl" program impose any licensing restrictions on files generated by their execution, in accordance with the 8th article of the Artistic License: "Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embe +dded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribut +ion. Such use shall not be construed as a distribution of this Pack +age." Therefore, you are absolutely free to place any license on the resulti +ng executable, as long as the packed 3rd-party libraries are also availab +le under the Artistic License. This program is free software; you can redistribute it and/or modify i +t under the same terms as Perl itself. There is NO warranty; not even f +or MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [user@server bin]$ which perl /usr/bin/perl [user@server bin]$ perl -vperl -E 'use pp; say $INC{"pp.pm"}; say $pp: +:VERSION;' This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. [user@server bin]$ which pp /usr/local/bin/pp [user@server bin]$ pp -V PAR Packager, version 1.050 (PAR version 1.016) Copyright 2002-2009 by Audrey Tang <cpan@audreyt.org> Neither this program nor the associated "parl" program impose any licensing restrictions on files generated by their execution, in accordance with the 8th article of the Artistic License: "Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embe +dded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribut +ion. Such use shall not be construed as a distribution of this Pack +age." Therefore, you are absolutely free to place any license on the resulti +ng executable, as long as the packed 3rd-party libraries are also availab +le under the Artistic License. This program is free software; you can redistribute it and/or modify i +t under the same terms as Perl itself. There is NO warranty; not even f +or MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [user@server bin]$ which perl /usr/bin/perl [user@server bin]$ perl -v This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

So far I have no indication that different Perl versions are mixed up on this box.

BUT:

I found something very interesting (and weird at the same time):

program.pl is intended to run on windows and linux boxes as well. We use a Win 2012 server with Strawberry Perl 5.28.2 installed, and, guess, I find Static.pm installed in the directory C:\Strawberry\perl\site\lib\PAR\StrippedPARL, although PAR:Packer on this machine is of version 1.049. And

pp -B -o program.exe program.pl

works flawlessly on Windows 2012.

It seems that the Strawberry guys bundled the "old" modules Static.pm (and Dynamic.pm) into this quite recent Perl (PAR::Packer) distribution. Really embarrassing!

Any ideas how to proceed? (o.k., I will, just to experiment, copy over Static.pm and Dynamic.pm (from cpan) into the appropriate directory on the Linux machine, but I think this is not only quick (provided it works), but very very DIRTY :->)

Totally different question:

When I post my questions here I use an "ordinary" text editor to prepare the text, insert the <p>, </p>, etc. by hand (!) and copy it over to the text box on this site. Inserting the tags is time consuming. I guess that there is a much easier way. How do You do this?

Replies are listed 'Best First'.
Re^3: Module Static.pm not found when using perl packer
by marto (Cardinal) on Jul 23, 2020 at 15:23 UTC

    "It seems that the Strawberry guys bundled the "old" modules Static.pm (and Dynamic.pm) into this quite recent Perl (PAR::Packer) distribution. Really embarrassing!"

    For Strawberry Perl 5.28.2 from the msi:

    marto@Marto-Desktop:~/Downloads/msi/Strawberry$ find . -name "Static.p +m" ./perl/vendor/lib/Mojolicious/Static.pm marto@Marto-Desktop:~/Downloads/msi/Strawberry

    From the 'portable':

    marto@Marto-Desktop:~/portable$ find . -name "Static.pm" ./perl/vendor/lib/Mojolicious/Static.pm marto@Marto-Desktop:~/portable$

    From the 'zip' distro:

    marto@Marto-Desktop:~/zip$ find . -name "Static.pm" ./perl/vendor/lib/Mojolicious/Static.pm marto@Marto-Desktop:~/zip$

    I can't see anything to back up this claim.

Re^3: Module Static.pm not found when using perl packer
by hippo (Bishop) on Jul 23, 2020 at 14:53 UTC
    Inserting the tags is time consuming. I guess that there is a much easier way. How do You do this?

    I use a node template. You can set one up in your Signature Settings. Or you could configure your editor to use a template. Or you could use an HTML-aware editor. Or you could use a post-processor (in Perl, of course) to wrap every paragraph outside code blocks in p tags. Or ... so many alternatives!


    🦛 Sig test because I changed it while I was there. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119707]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-20 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found