in reply to Packaging Libraries before deploying my Scripts.
To use a custom location for libraries, put
at the top of your script.use lib '/wherever/you/want';
As for packaging libs with your script, the approach you've outlined won't work. When you install a Perl lib via make it will be built for the system it's being built on. Some modules are simple enough that they can be picked up and moved, but most not.
There are many ways to solve your problem, from packaging a self-contained app, to including a README with instructions on how to get missing libs. It depends on your users' ability, mostly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Packaging Libraries before deploying my Scripts.
by ArunMKumar (Initiate) on Oct 25, 2016 at 12:24 UTC | |
by marto (Cardinal) on Oct 25, 2016 at 13:53 UTC | |
by 1nickt (Canon) on Oct 25, 2016 at 12:43 UTC |