Cpanminus inside Staticperl?
Mark Lawrence
nomad at null.net
Wed Oct 8 10:15:13 CEST 2014
On Tue Oct 07, 2014 at 05:16:41PM -0400, Lee Aylward wrote:
> On Oct 7, 2014, at 4:17 PM, Mark Lawrence <nomad at null.net> wrote:
>
> > I would like to be able to use cpanminus to install modules inside
> > a staticperl instance. What I've done so far:
> Have you tried using the -l or -L options for cpanm?
No, but I don't think I want to install modules into a location which
will not be found by other invocations of staticperl without trickery.
But your question did point me in the direction of looking at my
environment. I do have a local::lib active with LOCAL_LIB_DIR and
PERL_LOCAL_LIB_ROOT environment variables. If I unset these then I can
run cpanm normally inside staticperl using "staticperl perl
$PATH_TO_STATICPERL_CPANM". Perhaps staticperl should unset these as
well?
--
Mark Lawrence
More information about the anyevent
mailing list