Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: Best strategy to facilitate dependency installation for a Perl-based software distribution

by hermida (Scribe)
on Nov 17, 2011 at 09:31 UTC ( #938562=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Best strategy to facilitate dependency installation for a Perl-based software distribution
in thread Best strategy to facilitate dependency installation for a Perl-based software distribution

Hello, thank you for the help and advice, I'm a bit lost and I think I need a bit more help :-( sorry. Let me start over... here's my scenario:

The only requirement is that an install site has Perl installed and nothing else from CPAN. A site will download the software app distro into a directory $APP_HOME

The software distro comes with all non-CORE and non-XS CPAN dependencies in $APP_HOME/extlib/lib/perl5 (which I installed via cpanm -L extlib <module>) and it's own module library in $APP_HOME/lib

Programs in the software distro, lets say in $APP_HOME/scripts will need to use extlib and lib I imagine they would have this in at the top:

use FindBin; use local::lib "$FindBin::Bin/../extlib"; use local::lib "$FindBin::Bin/../lib"; use My::App; use Sort::Key; ...

I would like everything to be self-contained within the app distro, therefore no meddling with the install user's .bashrc or anything like that because of multiple reasons, one being that the install user might not be the user actually running software.

local::lib is not in Perl CORE and I could have it already in extlib/lib/perl5 but then you have this chicken-egg problem. Or is local::lib not really what I want? I am not interested in the local::lib functionality to allow a user to have their own CPAN modules installed in their $HOME directory, I am interested in providing a software application distro with non-CORE dependencies already included and a way for the distro's programs to use these included library paths all in a self-contained manner. What is the recommended and standard way to do this in Perl?


Comment on Re^5: Best strategy to facilitate dependency installation for a Perl-based software distribution
Download Code
Re^6: Best strategy to facilitate dependency installation for a Perl-based software distribution
by Anonymous Monk on Nov 17, 2011 at 14:54 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-12-29 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls