CC: | paul [...] pjcj.net |
Subject: | cpan: multiple problems with command-line options |
First discussed on irc.perl.org #perl-qa Sat Mar 22 by Paul Johnson.
Using the 'cpan' command-line utility that comes with Perl 5.18.2.
I. 'cpan -v' produces no output.
#####
[~] 34 $ which cpan
/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/bin/cpan
[~] 35 $ cpan -v
[~] 36 $
#####
II. 'cpan -T Some::Module' runs tests
The man page says:
#####
-T Do not test modules. Simply install them.
#####
But when I went to update Try::Tiny, it ran the tests as if I had not used '-T'. (Performance otherwise satisfactory.)
III. 'cpan -V' has uninitialized value, subsequently fails
See attachment cpan_V.txt.
Thank you very much.
Jim Keenan
Subject: | cpan_V.txt |
Trying to fetch a mirror list from the Internet
Fetching with LWP:
http://www.cpan.org/MIRRORED.BY
Can't use string ("North America") as an ARRAY ref while "strict refs" in use at /home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/CPAN/Mirrors.pm line 142.
Subject: | perl_V.txt |
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=linux, osvers=3.11.0-18-generic, archname=x86_64-linux
uname='linux zareason 3.11.0-18-generic #32-ubuntu smp tue feb 18 21:11:14 utc 2014 x86_64 x86_64 x86_64 gnulinux '
config_args='-de -Dprefix=/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2 -Aeval:scriptdir=/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/bin'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.8.1', 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='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.17.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.17'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -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_PRESERVE_IVUV PERL_SAWAMPERSAND 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 linux
Compiled at Mar 22 2014 10:07:22
%ENV:
PERLBREW_BASHRC_VERSION="0.67"
PERLBREW_HOME="/home/jkeenan/.perlbrew"
PERLBREW_MANPATH="/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/man"
PERLBREW_PATH="/home/jkeenan/perl5/perlbrew/bin:/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/bin"
PERLBREW_PERL="perl-5.18.2"
PERLBREW_ROOT="/home/jkeenan/perl5/perlbrew"
PERLBREW_VERSION="0.67"
@INC:
/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux
/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2
/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/x86_64-linux
/home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2
.