jamesgerard1964 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to install some perl modules into a custom directory, one of them, DateTime, requires some prerequisites that are causing a problem, this one in particular, "CPAN::Meta::YAML". I am able to install it in the custom path and it installs fine, version .011. However when I then try to install "Parse::CPAN::Meta" it appears to be reading the "CPAN::Meta::YAML" from the system's perl library, backlevel at .008. I set the PERL5LIB prior to installation but it doesn't help. I even tried to do it via a tar file and 'perl Makefile.PL' install, but get the same result. I run the Makefile with 'verbose' and it shows the custom paths level, 011, but during the 'make test' it again errors out with:
# The following REQUIRED prerequisites were not satisfied:
#
# CPAN::Meta::YAML version '0.008' is not in required range '0.011'
=> perl -I /opt/app/d1cap1w6/.perl/lib/perl5 Makefile.PL SITEPREFIX=/o +pt/app/d1cap1w6/.perl PREFIX=/opt/app/d1cap1w6/.perl verbose Checking if your kit is complete... Looks good ABSTRACT => q[Parse META.yml and META.json CPAN metadata files] AUTHOR => [q[Adam Kennedy <adamk@cpan.org>, David Golden <dagolden@c +pan.org>]] BUILD_REQUIRES => { } CONFIGURE_REQUIRES => { ExtUtils::MakeMaker=>q[6.30] } DISTNAME => q[Parse-CPAN-Meta] EXE_FILES => [] LICENSE => q[perl] NAME => q[Parse::CPAN::Meta] PREFIX => q[/opt/app/d1cap1w6/.perl] PREREQ_PM => { CPAN::Meta::YAML=>q[0.011], Carp=>q[0], Encode=>q[0], + Exporter=>q[0], File::Spec=>q[0.80], JSON::PP=>q[2.27200], strict=>q +[0] } SITEPREFIX => q[/opt/app/d1cap1w6/.perl] TEST_REQUIRES => { ExtUtils::MakeMaker=>q[0], File::Spec=>q[0.80], F +ile::Spec::Functions=>q[0], List::Util=>q[0], Test::More=>q[0.47], li +b=>q[0], vars=>q[0], version=>q[0], warnings=>q[0] } VERSION => q[1.4414] test => { TESTS=>q[t/*.t] } Using PERL=/usr/bin/perl Generating a Unix-style Makefile Writing Makefile for Parse::CPAN::Meta Writing MYMETA.yml and MYMETA.json
=> make cp lib/Parse/CPAN/Meta.pm blib/lib/Parse/CPAN/Meta.pm Manifying 1 pod document
=> make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/l +ib', 'blib/arch')" t/*.t t/00-report-prereqs.t .. # # Versions for all modules listed in MYMETA.json (including optional o +nes): # Version Module # -------- ------------------------ # 2.120351 CPAN::Meta # 2.127 CPAN::Meta::Requirements # 0.008 CPAN::Meta::YAML # 1.04 Carp # 2.65 Encode # 5.58 Exporter # 7.02 ExtUtils::MakeMaker # 3.47 File::Spec # 3.47 File::Spec::Functions # 2.27203 JSON::PP # 1.21 List::Util # 1.001009 Test::More # 0.5565 lib # 1.03 strict # 1.01 vars # 0.9909 version # 1.05 warnings # # *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING +*** # # The following REQUIRED prerequisites were not satisfied: # # CPAN::Meta::YAML version '0.008' is not in required range '0.011' # t/00-report-prereqs.t .. ok t/02_api.t ............. CPAN::Meta::YAML 0.011 is not available at t/02_api.t line 62 # Looks like your test exited with 9 before it could output anything. t/02_api.t ............. Dubious, test returned 9 (wstat 2304, 0x900) No subtests run t/03_functions.t ....... ok t/04_export.t .......... ok t/05_errors.t .......... 1/1 # Failed test 'error causes exception' # at t/05_errors.t line 23. # 'CPAN::Meta::YAML 0.011 is not available # at t/05_errors.t line 22 # ' # doesn't match '/illegal characters/' # Looks like you failed 1 test of 1. t/05_errors.t .......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- t/02_api.t (Wstat: 2304 Tests: 0 Failed: 0) Non-zero exit status: 9 Parse errors: No plan found in TAP output t/05_errors.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=5, Tests=8, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.25 cusr + 0.03 csys = 0.31 CPU) Result: FAIL Failed 2/5 test programs. 1/8 subtests failed. make: *** [test_dynamic] Error 1
=> perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: . . . %ENV: PERL5LIB="/opt/app/d1cap1w6/.perl/lib/perl5" @INC: /opt/app/d1cap1w6/.perl/lib/perl5/5.8.8 /opt/app/d1cap1w6/.perl/lib/perl5/x86_64-linux-thread-multi /opt/app/d1cap1w6/.perl/lib/perl5 /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN install to custom path
by choroba (Cardinal) on Dec 02, 2014 at 16:12 UTC | |
|
Re: CPAN install to custom path
by atcroft (Abbot) on Dec 02, 2014 at 16:26 UTC | |
by McA (Priest) on Dec 02, 2014 at 16:43 UTC | |
by choroba (Cardinal) on Dec 02, 2014 at 16:44 UTC | |
by jamesgerard1964 (Novice) on Dec 02, 2014 at 17:49 UTC | |
by Anonymous Monk on Dec 02, 2014 at 17:56 UTC | |
by choroba (Cardinal) on Dec 02, 2014 at 21:44 UTC | |
|