<br><br><div class="gmail_quote">On Mon, Jun 22, 2009 at 8:43 AM, Tobias Kremer <span dir="ltr">&lt;<a href="mailto:tobias.kremer@gmail.com">tobias.kremer@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

After reading about local::lib and thinking that it&#39;s too good to be<br>
true, I just had to try it out as a possible deployment method for one<br>
of our apps. I have the app and all dependencies running on my<br>
development box. The prerequisites are specified in my app&#39;s<br>
Makefile.PL. Now, after having bootstrapped local::lib, I ran the<br>
following commands - as suggested by t0m in a recent thread - but<br>
nothing happens because all required modules are already installed in<br>
my system-wide CPAN directory in their correct versions:<br>
<br>
$ eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=--self-contained,local_lib)<br>
$ make installdeps<br>
<br>
Am I missing something here or do I really have to checkout my app on<br>
a fresh installation with no prerequisites installed and try the above<br>
there?</blockquote><div><br>--self-contained does not work when exporting variables to the environment<br>because of the way the perl runtime works. Basically perl will always setup @INC to include<br>system libraries, regardless of what is in PERL5LIB. <br>

<br>You can try this: PERL5OPT=&quot;-Mlocal::lib=--self-contained,local_lib&quot;<br><br>(But you may encounter some problems with taint checking)<br><br>Rob<br></div></div>