Cpanminus inside Staticperl?

Lee Aylward lee at laylward.com
Tue Oct 7 23:16:41 CEST 2014


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:
> 
> Local environment:
> 
>    export STATICPERLRC=/home/mark/src/bif/.staticperlrc
> 
> .staticperlrc:
> 
>    STATICPERL=$PWD/.staticperl
>    PERL_VERSION="5.18.1"
>    PERL_CCFLAGS="-DSQLITE_OMIT_LOAD_EXTENSION"
> 
> Installed a perl
> 
>    staticperl install
> 
> Installed cpanminus:
> 
>    staticperl instcpan App::cpanminus
> 
> Running cpanm like so:
> 
>    staticperl perl .staticperl/bin/cpanm Some-Dist.tar.gz
> 
> The problem I have is that cpanm detects modules which are installed in
> my current environment, and so doesn't install the necessary
> dependencies for Some-Dist.tar.gz which are not actually installed in
> .staticperl/. Am I likely to be able to make this work?
> 
> -- 
> Mark Lawrence
> 

Have you tried using the -l or -L options for cpanm?
— 
Lee




More information about the anyevent mailing list