in reply to CPAN install to custom path

In addition to choroba's excellent suggestion, I've also heard mentioned (but not tried myself) local::lib, whose brief description is, "local::lib - create and use a local lib/ for perl modules with PERL5LIB".

Hope that helps.

Replies are listed 'Best First'.
Re^2: CPAN install to custom path
by McA (Priest) on Dec 02, 2014 at 16:43 UTC

    May I add App::cpanminus together with local::lib. I use and like this combination to install module trees for testing without mixing up systems perl.

    McA

Re^2: CPAN install to custom path
by choroba (Cardinal) on Dec 02, 2014 at 16:44 UTC
    The problem with local::lib is that you need to be able to install modules to be able to install local::lib...
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      I already have those 2 conf changes configured within cpan. I updated the PERL5LIB variable to include the ARCH, reran in install but still get the same error.
      => echo $PERL5LIB /opt/app/d1cap1w6/.perl/lib/perl5:/opt/app/d1cap1w6/.perl/lib/perl5/x8 +6_64-linux-thread-multi
      mbuildpl_arg [installdirs=site install_base=/opt/app/d1cap1w6/.perl]
      makepl_arg [INSTALLDIRS=site INSTALL_BASE=/opt/app/d1cap1w6/.perl]