Subject: | Unable to upgrade DateTime via 'cpanm' |
I am having difficulty upgrading DateTime via 'cpanm' on the machine described in the perl_V attachment.
Let me say at the outset that the version of DateTime currently installed is in a directory tree governed by local::lib, i.e., it's in a location dictated by job requirements rather than by my own use of 'cpanm', 'cpan', etc.
The currently installed versions of relevant packages, as observed via 'perldoc -m <module>', are:
DateTime: 0.72
DateTime::Locale: 0.45
DateTime::TimeZone: 1.42
The full output of 'cpanm', the build logs, etc., are attached. Here I quote relevant extracts.
#####
$ cpanm DateTime
--> Working on DateTime
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-1.18.tar.gz ... OK
Configuring DateTime-1.18 ... OK
==> Found dependencies: DateTime::TimeZone
--> Working on DateTime::TimeZone
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-1.86.tar.gz ... OK
Configuring DateTime-TimeZone-1.86 ... OK
Building and testing DateTime-TimeZone-1.86 ... FAIL
! Installing DateTime::TimeZone failed. See /Users/jkeenan/.cpanm/work/1429017224.40597/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Installed version (1.42) of DateTime::TimeZone is not in range '1.74'
! Bailing out the installation for DateTime-1.18.
#####
Switching into the .cpanm/work directory and examining the build log, I see the following:
#####
cpanm (App::cpanminus) 1.7014 on perl 5.020001 built for darwin-2level
Work directory is /Users/jkeenan/.cpanm/work/1429017224.40597
[snip]
--> Working on DateTime
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-1.18.tar.gz
-> OK
[snip]
Checking prerequisites...
requires:
! DateTime::TimeZone (1.42) is installed, but we need version >= 1.74
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
[snip]
==> Found dependencies: DateTime::TimeZone
Searching DateTime::TimeZone on cpanmetadb ...
--> Working on DateTime::TimeZone
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-1.86.tar.gz
-> OK
Unpacking DateTime-TimeZone-1.86.tar.gz
Entering DateTime-TimeZone-1.86
[snip]
t/00-report-prereqs.t ....... ok
Use of uninitialized value in subroutine entry at /Users/jkeenan/adama/extlib/lib/perl5/DateTime/Locale.pm line 41.
t/02basic.t .................
No subtests run
Use of uninitialized value in subroutine entry at /Users/jkeenan/adama/extlib/lib/perl5/DateTime/Locale.pm line 41.
[snip]
Files=26, Tests=65, 7 wallclock secs ( 0.08 usr 0.06 sys + 1.47 cusr 0.23 csys = 1.84 CPU)
Result: FAIL
Failed 15/26 test programs. 0/65 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing DateTime::TimeZone failed. See /Users/jkeenan/.cpanm/work/1429017224.40597/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Installed version (1.42) of DateTime::TimeZone is not in range '1.74'
-> FAIL Bailing out the installation for DateTime-1.18.
#####
I next tried to use 'cpanm' to install DateTime::TimeZone.
#####
$ cpanm DateTime::TimeZone
--> Working on DateTime::TimeZone
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-1.86.tar.gz ... OK
Configuring DateTime-TimeZone-1.86 ... OK
Building and testing DateTime-TimeZone-1.86 ... FAIL
! Installing DateTime::TimeZone failed. See /Users/jkeenan/.cpanm/work/1429018096.40949/build.log for details. Retry with --force to force install it.
#####
Examining this most recent build log, I see:
#####
cpanm (App::cpanminus) 1.7014 on perl 5.020001 built for darwin-2level
[snip]
--> Working on DateTime::TimeZone
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-1.86.tar.gz
-> OK
t/00-report-prereqs.t ....... ok
Use of uninitialized value in subroutine entry at /Users/jkeenan/adama/extlib/lib/perl5/DateTime/Locale.pm line 41.
t/02basic.t .................
No subtests run
Use of uninitialized value in subroutine entry at /Users/jkeenan/adama/extlib/lib/perl5/DateTime/Locale.pm line 41.
[snip]
Files=26, Tests=65, 4 wallclock secs ( 0.08 usr 0.05 sys + 1.39 cusr 0.20 csys = 1.72 CPU)
Result: FAIL
Failed 15/26 test programs. 0/65 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing DateTime::TimeZone failed. See /Users/jkeenan/.cpanm/work/1429018096.40949/build.log for details. Retry with --force to force install it.
#####
Should I try to install DateTime::Locale, I am told that it is already up-to-date.
#####
$ cpanm DateTime::Locale
DateTime::Locale is up to date. (0.45)
#####
Subject: | DateTime.TimeZone.build.log |
Message body not shown because it is not plain text.
Subject: | DateTime.build.log |
Message body not shown because it is not plain text.
Subject: | perl_V.txt |
Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
Platform:
osname=darwin, osvers=13.2.0, archname=darwin-2level
uname='darwin mm-mac-2776.local 13.2.0 darwin kernel version 13.2.0: thu apr 17 23:03:13 pdt 2014; root:xnu-2422.100.13~1release_x86_64 x86_64 '
config_args='-de -Dprefix=/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1 -Aeval:scriptdir=/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1/bin'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector',
optimize='-O3',
cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.54)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector'
libpth=/Library/Developer/CommandLineTools/usr/bin/../lib/clang/6.0/lib /Library/Developer/CommandLineTools/usr/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under darwin
Compiled at Oct 28 2014 11:36:37
%ENV:
PERL5DIR="/Users/jkeenan/gitwork/perl"
PERL5LIB="/Users/jkeenan/adama/extlib/lib/perl5/darwin-2level:/Users/jkeenan/adama/extlib/lib/perl5"
PERLBREW_BASHRC_VERSION="0.71"
PERLBREW_HOME="/Users/jkeenan/.perlbrew"
PERLBREW_MANPATH="/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1/man"
PERLBREW_PATH="/Users/jkeenan/perl5/perlbrew/bin:/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1/bin"
PERLBREW_PERL="perl-5.20.1"
PERLBREW_ROOT="/Users/jkeenan/perl5/perlbrew"
PERLBREW_VERSION="0.71"
PERL_LOCAL_LIB_ROOT="/Users/jkeenan/adama/extlib"
PERL_MB_OPT="--install_base /Users/jkeenan/adama/extlib"
PERL_MM_OPT="INSTALL_BASE=/Users/jkeenan/adama/extlib"
PERL_WORKDIR="gitwork/perl"
@INC:
/Users/jkeenan/adama/extlib/lib/perl5/darwin-2level
/Users/jkeenan/adama/extlib/lib/perl5/darwin-2level
/Users/jkeenan/adama/extlib/lib/perl5
/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/darwin-2level
/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1
/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/darwin-2level
/Users/jkeenan/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1
.