Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Packaging Libraries before deploying my Scripts.

by marto (Cardinal)
on Oct 25, 2016 at 13:53 UTC ( [id://1174693]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Packaging Libraries before deploying my Scripts.
in thread Packaging Libraries before deploying my Scripts.

It's perhaps worth pointing out that some modules are wrappers around external libraries, e.g. XML::LibXML is an interface on libxml2. You'd need to ensure that the required libraries and so on are available on the target machines. An alternative idea worth considering would be packaging your scripts and their dependencies into an executable using something like PAR/pp, e.g. on my 64bit Debian system:

#!/usr/bin/perl use strict; use warnings; use XML::LibXML; use Spreadsheet::ParseExcel; print "test\n";

Packaged to an executable Packaged via:

pp -x -o Packaged \ -l /usr/lib/x86_64-linux-gnu/libicudata.so \ -l /usr/lib/x86_64-linux-gnu/libxml2.so \ -l /usr/lib/x86_64-linux-gnu/libicuuc.so \ source.pl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found