Cpanminus inside Staticperl?
Marc Lehmann
schmorp at schmorp.de
Wed Oct 8 09:12:26 CEST 2014
On Tue, Oct 07, 2014 at 10:17:32PM +0200, Mark Lawrence <nomad at null.net> wrote:
> Running cpanm like so:
>
> staticperl perl .staticperl/bin/cpanm Some-Dist.tar.gz
You should also be able to simply start it as .staticperl/bin/cpanm, but
the above works too, as long as cpanm is a perl script.
> 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?
That should only happen if you have PERL5LIB set to your other
environment, or when the modules are in ".", as perl prepends "." to the
search path.
Possibly cpanminus has some configuration, too, where you told it to look
in some shared location for modules, in addition to where perl looks. If
cpanminus looks for it's config file in ~/.somewhere, it would see the same
config for all of the perl's using the same $HOME.
If neither is the case, then this would be a bug in cpanminus - it has
no business looking outside the defined module paths - to cpanm, the
staticperl install should look like any other perl installation (except
linking modules is done statically by default, which is an uncommon perl
config).
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list