setenv PERL5LIB /perl_test_lib/lib/perl5
setenv INSTALL_BASE /perl_test_lib
setenv PERL_MM_OPT INSTALL_BASE=/perl_test_lib
setenv PERL_MB_OPT --install_base /perl_test_lib
####
cpanm --local-lib=/perl_test_lib/ local::lib && perl -I /perl_test_lib/lib/perl5/ -Mlocal::lib
####
bin/cpanm --local-lib=/perl_test_lib/ Getopt::ArgParse
####
Manifying 5 pod documents
PERL_DL_NONLAZY=1 "/package_path/pkgs/perl/5.14.1/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/accessor-coerce.t ................
No subtests run
...
t/undef-bug.t ......................
Failed 1/1 subtests
...
Test Summary Report
-------------------
t/accessor-coerce.t (Wstat: 11 Tests: 0 Failed: 0)
Non-zero wait status: 11
Parse errors: No plan found in TAP output
...
t/undef-bug.t (Wstat: 11 Tests: 0 Failed: 0)
Non-zero wait status: 11
Parse errors: Bad plan. You planned 1 tests but ran 0
...
Files=68, Tests=293, 2 wallclock secs ( 0.08 usr 0.04 sys + 1.12 cusr 0.25 csys = 1.49 CPU)
Result: FAIL
Failed 30/68 test programs. 0/293 subtests failed.
make: *** [test_dynamic] Error 25
####
...
# Failed test 'subs imported on 'use Moo::Role;' after 'no Moo::Role;''
# at t/use-after-no.t line 22.
# Can't locate Import/Into.pm in @INC (@INC contains: /path/to/lib/local/lib/perl5/Moo-1.007000/blib/lib /path/to/lib/local/lib/perl5/Moo-1.007000/blib/arch /path/to/perl/5.14.1/lib64/site_perl/x86_64-linux /path/to/perl/5.14.1/lib64/site_perl /path/to/perl/5.14.1/lib64/5.14.1/x86_64-linux /path/to/perl/5.14.1/lib64/5.14.1 /path/to/perl/5.14.1/lib64/module/default/x86_64-linux /path/to/perl/5.14.1/lib64/module/default .) at /path/to/lib/local/lib/perl5/Moo-1.007000/blib/lib/Moo/Role.pm line 7.
# BEGIN failed--compilation aborted at /path/to/lib/local/lib/perl5/Moo-1.007000/blib/lib/Moo/Role.pm line 7.
# Compilation failed in require at (eval 9) line 3.
# BEGIN failed--compilation aborted at (eval 9) line 3.
# Looks like you failed 2 tests of 2.
...
####
/lib/perl5/Moo
GetOpt/ArgParse
Import/Into
bin/myscript
####
#Get the proxy stuff out of the way
setenv http_proxy
#Use wget and cpan to install Lib::Local
wget http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/local-lib-2.000015.tar.gz
#Untar the library
tar -xvpf local-lib-2.000015.tar.gz
#cd into the untarred directory
cd local-lib-2.000015
#Tell the makefile where you plan to install the library
# Intended path: /path/to/install/lib/perl5/Local
# Use: --bootstrap=/path/to/install
perl Makefile.PL --bootstrap=/path/to/install
#Run make test to ensure everything is setup correctly
make test
#Run make install the complete the install
make install
#You should now be ready to install any additional modules.
#use wget to get the package from cpan(same as before)
#untar the package and cd into the directory(same as before)
#Execute the MakeFile(This will be different)
perl -I/path/to/lib/local/lib/perl5 -Mlocal::lib=/path/to/install/new/module/ Makefile.PL
#Then run make test and make install as before