Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$CPAN::Config->{unzip} not autoconfigured #10111

Closed
p5pRT opened this issue Jan 25, 2010 · 8 comments
Closed

$CPAN::Config->{unzip} not autoconfigured #10111

p5pRT opened this issue Jan 25, 2010 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 25, 2010

Migrated from rt.perl.org#72358 (status was 'resolved')

Searchable as RT72358$

@p5pRT
Copy link
Author

p5pRT commented Jan 25, 2010

From @jbenjore

Created by jbenjore@w3m211a.corp.w3data.com

While installing WWW​::Mechanize, attempted to install
C/CH/CHORNY/Test-Warn-0.21.zip. Used a pre-existing
.cpan/CPAN/MyConfig.pm which didn't define $CPAN​::Config->{unzip}.
Failed at runtime with​:

Running make for C/CH/CHORNY/Test-Warn-0.21.zip
Checksum for /Users/jbenjore/.cpan/sources/authors/id/C/CH/CHORNY/Test-Warn-0.21.zip
ok
Cannot unzip, no unzip program available

This should have at least configured unzip at runtime for me.
/usr/bin/unzip is in the PATH.

Perl Info

Flags:
    category=library
    severity=medium
    module=CPAN

Site configuration information for perl 5.11.4:

Configured by jbenjore at Mon Jan 25 10:21:27 PST 2010.

Summary of my perl5 (revision 5 version 11 subversion 4) configuration:
  Commit id: 2908b263df5784d122bb6eb465f6512af2ea45b5
  Platform:
    osname=darwin, osvers=10.2.0, archname=darwin-thread-multi-2level
    uname='darwin w3m211a.corp.w3data.com 10.2.0 darwin kernel version
10.2.0: tue nov 3 10:37:10 pst 2009; root:xnu-1486.2.11~1release_i386
i386 '
    config_args='-Dusedevel -DDEBUGGING=both -de
-Dprefix=/opt/perl-5.11.4 -Duse64bitint -Dusethreads'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -I/opt/local/include',
    optimize='-O3 -g',
    cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN
-no-cpp-precomp -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5646) (dot 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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='
-fstack-protector -L/usr/local/lib -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, 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
-L/usr/local/lib -L/opt/local/lib -fstack-protector'

Locally applied patches:



@INC for perl 5.11.4:
    /Users/jbenjore/lib/perl5/darwin-thread-multi-2level
    /Users/jbenjore/lib/perl5
    /Users/jbenjore/lib/perl5/darwin-thread-multi-2level
    /opt/perl-5.11.4/lib/site_perl/5.11.4/darwin-thread-multi-2level
    /opt/perl-5.11.4/lib/site_perl/5.11.4
    /opt/perl-5.11.4/lib/5.11.4/darwin-thread-multi-2level
    /opt/perl-5.11.4/lib/5.11.4
    .


Environment for perl 5.11.4:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/jbenjore
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/Users/jbenjore/src/git-utils:/opt/perl-5.10.1/bin:/Users/jbenjore/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/jbenjore/src/whitepages-git-utils/
    PERL5LIB=/Users/jbenjore/lib/perl5:/Users/jbenjore/lib/perl5/darwin-thread-multi-2level
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2010

From @xdg

On Mon, Jan 25, 2010 at 2​:36 PM, Joshua b. Jore (via RT)
<perlbug-followup@​perl.org> wrote​:

This should have at least configured unzip at runtime for me.
/usr/bin/unzip is in the PATH.

It's not CPAN's style to do runtime configuration if a user has not
configured a program because the user might have *intentionally* not
configured a broken/buggy program.

I'm committing a patch to the upstream repo that provides a more
informative error message that tells the user what to do to fix the
problem​:

  Can't unzip '/srv/minicpan/authors/id/C/CH/CHORNY/Test-Warn-0.21.zip'​:

  You have not configured an 'unzip' program and do not have Archive​::Zip
  installed. Please install Archive​::Zip or configure 'unzip' by running
  the command 'o conf init unzip' from the CPAN shell prompt.

-- David

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2010

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Feb 2, 2010

From @xdg

On Tue, Jan 26, 2010 at 8​:45 PM, Josh Jore <twists@​gmail.com> wrote​:

Does that error message abort recursive dependency resolution? There's the
problem of important errors in the middle of large streams

It's a "die" so, yes, it stops.

David

@p5pRT
Copy link
Author

p5pRT commented Feb 2, 2010

From @jbenjore

Does that error message abort recursive dependency resolution? There's the problem of important errors in the middle of large streams

Josh

David Golden wrote​:

On Mon, Jan 25, 2010 at 2​:36 PM, Joshua b. Jore (via RT)

<perlbug-followup@​perl.org> wrote​:

This should have at least configured unzip at runtime for me.

/usr/bin/unzip is in the PATH.

It's not CPAN's style to do runtime configuration if a user has not

configured a program because the user might have *intentionally* not

configured a broken/buggy program.

I'm committing a patch to the upstream repo that provides a more

informative error message that tells the user what to do to fix the

problem​:

  Can't unzip '/srv/minicpan/authors/id/C/CH/CHORNY/Test-Warn-0.21.zip'​:

  You have not configured an 'unzip' program and do not have Archive​::Zip

  installed. Please install Archive​::Zip or configure 'unzip' by running

  the command 'o conf init unzip' from the CPAN shell prompt.

-- David

@p5pRT
Copy link
Author

p5pRT commented Feb 2, 2010

From @xdg

This is blocking pending a release of CPAN.pm to CPAN and then inclusion
in blead.

@p5pRT
Copy link
Author

p5pRT commented Feb 6, 2010

From @obra

On Tue Feb 02 12​:36​:14 2010, dagolden@​cpan.org wrote​:

This is blocking pending a release of CPAN.pm to CPAN and then inclusion
in blead.

Fixed in CPAN 1.94_55, which is now in blead. Resolving.

@p5pRT
Copy link
Author

p5pRT commented Feb 6, 2010

@obra - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant