<?xml version="1.0" encoding="windows-1252"?>
<node id="938158" title="Re^4: Best strategy to facilitate dependency installation for a Perl-based software distribution" created="2011-11-15 07:37:44" updated="2011-11-15 07:37:44">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;P&gt;&lt;I&gt;Sorry if I wasn't clear, its because one needs to use local::lib "$FindBin::Bin/../extlib" to be able to include and use these bundled dependencies therefore local::lib cannot be bundled &lt;/i&gt;
&lt;P&gt;??
&lt;P&gt;Maybe you want to study [mod://local::lib] a little closer?
&lt;C&gt;
$ perl Makefile.PL
purchasing clue ...
Checking if your kit is complete...
Looks good
Writing Makefile for ...
Writing MYMETA.yml and MYMETA.json

$ make test
...

$ make install
...
Installing  /home/username/perl5/lib/perl5/bin/clue

$ cat /home/username/perl5/lib/perl5/bin/clue
#!/usr/bin/perl --
use lib
  '/home/username/perl5/lib/perl5/i386-linux',
  '/home/username/perl5/lib/perl5',
  ;
use MyClues;
MyClues-&gt;run;
__END__

$ perl -I$HOME/perl5/lib/perl5 -Mlocal::lib -e 1
  export PERL_MB_OPT='--install_base /home/username/perl5'
  export PERL_MM_OPT='INSTALL_BASE=/home/username/perl5'
  export PERL5LIB='/home/username/perl5/lib/perl5/i386-linux:/home/username/perl5/lib/perl5'
  export PATH="/home/username/perl5/bin:$PATH"


$ echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' &gt;&gt;~/.bashrc

&lt;/C&gt;
&lt;P&gt;Now this clue preparation can be generating scripts/clue from template, it can "bootstrapping" local::lib, or instructing your users to append to bashrc
&lt;P&gt;I don't see a problem</field>
<field name="root_node">
933700</field>
<field name="parent_node">
938149</field>
<field name="reputation">
5</field>
</data>
</node>
