Skip Menu |
 

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 94118
Status: open
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: jkeenan [...] cpan.org
Cc: paul [...] pjcj.net
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: paul [...] pjcj.net
Subject: cpan: multiple problems with command-line options
Download (untitled) / with headers
text/plain 654b
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
Download cpan_V.txt
text/plain 265b
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
Download perl_V.txt
text/plain 2.9k
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 .
use App::Cpan '1.60_02'; $VERSION = '1.61';
Download (untitled) / with headers
text/plain 584b
One further observation, $CPAN_OPTS appears to be treated as modules rather than options: $ CPAN_OPTS="-T" cpan Shell::Source CPAN: Storable loaded ok (v2.45) Reading '/home/pjcj/.cpan/Metadata' Database was generated on Sat, 22 Mar 2014 17:41:02 GMT CPAN: Module::CoreList loaded ok (v3.09) Shell::Source is up to date (0.01). Warning: Cannot install -T, don't know what it is. Try the command i /-T/ to find objects with matching identifiers. $ cpan -v /home/pjcj/perl5/perlbrew/perls/cpancover/bin/cpan script version 1.61, CPAN.pm version 2.00 (Yes, that works for me.)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.