andk / cpanpm

CPAN.pm
87 stars 79 forks source link

cpan fails to install "Bundles" on perl 5.25.0 #99

Open glasswalk3r opened 8 years ago

glasswalk3r commented 8 years ago

If I attempt:

alceu@yggdrasil:~/Docker$ cpan Bundle::CPAN::Reporter::Smoker::Tests
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Sun, 03 Jul 2016 16:09:13 GMT

Could not expand [Bundle::CPAN::Reporter::Smoker::Tests]. Check the module name.
I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
Skipping Bundle::CPAN::Reporter::Smoker::Tests because I couldn't find a matching namespace.

With the "-i" command line argument:

alceu@yggdrasil:~/Docker$ cpan -i Bundle::CPAN::Reporter::Smoker::Tests
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Sun, 03 Jul 2016 16:09:13 GMT

Could not expand [Bundle::CPAN::Reporter::Smoker::Tests]. Check the module name.
I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
Skipping Bundle::CPAN::Reporter::Smoker::Tests because I couldn't find a matching namespace.

Now, if I attempt inside the CPAN shell:

alceu@yggdrasil:~/Docker$ cpan

cpan shell -- CPAN exploration and modules installation (v2.14)
Enter 'h' for help.

cpan[1]> install Bundle::CPAN::Reporter::Smoker::Tests
Database was generated on Sun, 03 Jul 2016 16:09:13 GMT

Test::Most is up to date (0.34).
Test::MockObject is up to date (1.20150527).
Test::NoWarnings is up to date (1.04).
Test::Output is up to date (1.03).
...

It also fails with Bundle::CPAN as well:

alceu@yggdrasil:~/Docker$ cpan Bundle::CPAN
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Sun, 03 Jul 2016 16:09:13 GMT

Could not expand [Bundle::CPAN]. Check the module name.
I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
Skipping Bundle::CPAN because I couldn't find a matching namespace.

Following the recommended action:

alceu@yggdrasil:~/Docker$ cpan Text::Levenshtein::XS
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Sun, 03 Jul 2016 16:09:13 GMT

Running install for module 'Text::Levenshtein::XS'
CPAN: LWP::UserAgent loaded ok (v6.15)
Fetching with LWP:
http://192.168.1.103:2963/minicpan/authors/id/U/UG/UGEXE/Text-Levenshtein-XS-0.503.tar.gz
CPAN: YAML::XS loaded ok (v0.62)
CPAN: Digest::SHA loaded ok (v5.95)

Trying again:

alceu@yggdrasil:~/Docker$ cpan Bundle::CPAN
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Sun, 03 Jul 2016 16:09:13 GMT

Could not expand [Bundle::CPAN]. Check the module name.
glasswalk3r commented 8 years ago
alceu@yggdrasil:~/Docker$ perl -V
Summary of my perl5 (revision 5 version 25 subversion 0) configuration:

  Platform:
    osname=linux, osvers=3.13.0-86-generic, archname=x86_64-linux
    uname='linux yggdrasil 3.13.0-86-generic #130-ubuntu smp mon apr 18 18:27:15 utc 2016 x86_64 x86_64 x86_64 gnulinux '
    config_args='-de -Dprefix=/home/alceu/perl5/perlbrew/perls/perl-5.25.0 -Dusedevel -Aeval:scriptdir=/home/alceu/perl5/perlbrew/perls/perl-5.25.0/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 ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.4', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
    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 /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.19.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.19'
  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_COPY_ON_WRITE
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV PERL_USE_DEVEL USE_64_BIT_ALL
                        USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
                        USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
                        USE_PERL_ATOF
  Locally applied patches:
    Devel::PatchPerl 1.38
  Built under linux
  Compiled at May 16 2016 10:58:43
  %ENV:
    PERLBREW_BASHRC_VERSION="0.73"
    PERLBREW_HOME="/home/alceu/.perlbrew"
    PERLBREW_MANPATH="/home/alceu/perl5/perlbrew/perls/perl-5.25.0/man"
    PERLBREW_PATH="/home/alceu/perl5/perlbrew/bin:/home/alceu/perl5/perlbrew/perls/perl-5.25.0/bin"
    PERLBREW_PERL="perl-5.25.0"
    PERLBREW_ROOT="/home/alceu/perl5/perlbrew"
    PERLBREW_VERSION="0.73"
  @INC:
    /home/alceu/perl5/perlbrew/perls/perl-5.25.0/lib/site_perl/5.25.0/x86_64-linux
    /home/alceu/perl5/perlbrew/perls/perl-5.25.0/lib/site_perl/5.25.0
    /home/alceu/perl5/perlbrew/perls/perl-5.25.0/lib/5.25.0/x86_64-linux
    /home/alceu/perl5/perlbrew/perls/perl-5.25.0/lib/5.25.0
    .
eserte commented 7 years ago

I also see this problem. But maybe it's fixed in the current trial, if this Changes entry applies here: https://metacpan.org/source/ANDK/CPAN-2.15-TRIAL/Changes#L5

briandfoy commented 7 years ago

This is very curious and I don't have ideas on what may be causing this. The first place I'd start looking is the cpan(1) entry point into the module. Maybe I'm short circuiting a step.

andk commented 7 years ago

On Fri, 13 Jan 2017 18:58:09 -0800, brian d foy notifications@github.com said:

This is very curious and I don't have ideas on what may be causing this.

Works for me. What am I missing? Please upgrade to the version in git.

-- andreas

glasswalk3r commented 7 years ago

Before I go grab the version on Github and give it a try, I did a quick test with other perl version.

alceu@yggdrasil:~$ perl -v

This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2016, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

alceu@yggdrasil:~$ cpan Bundle::Siebel::MonitoringTools
CPAN: CPAN::SQLite loaded ok (v0.211)
CPAN: LWP::UserAgent loaded ok (v6.15)
Fetching with LWP:
http://192.168.1.103:2963/minicpan/authors/01mailrc.txt.gz
CPAN: YAML::XS loaded ok (v0.63)
Fetching with LWP:
http://192.168.1.103:2963/minicpan/modules/02packages.details.txt.gz
Fetching with LWP:
http://192.168.1.103:2963/minicpan/modules/03modlist.data.gz
Database was generated on Sun, 08 Jan 2017 21:19:12 GMT

Updating database file ... 
Gathering information from index files ... Done.
Obtaining current state of database ... Done.
Populating database tables ... Done.
Done!
Could not expand [Bundle::Siebel::MonitoringTools]. Check the module name.
Checking 161867 namespaces for close match suggestions
Perhaps you meant one of these:
    Bundle::Siebel::MonitoringTools
Skipping Bundle::Siebel::MonitoringTools because I couldn't find a matching namespace.

It is the same behaviour than before, if I just type cpan and repeat "install Bundle::Siebel::MonitoringTools" things works as expected.

I think it is worth to mention that I'm using perlbrew:

alceu@yggdrasil:~$ perlbrew version
/home/alceu/perl5/perlbrew/bin/perlbrew  - App::perlbrew/0.73

Let's turn it off:

alceu@yggdrasil:~$ perlbrew off
perlbrew is turned off.
alceu@yggdrasil:~$ perl -v

This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
(with 58 registered patches, see perl -V for more detail)

Copyright 1987-2015, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

alceu@yggdrasil:~$ cpan
Loading internal null logger. Install Log::Log4perl for logging messages
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.11)
Enter 'h' for help.

cpan[1]> exit
Terminal does not support GetHistory.
Lockfile removed.
alceu@yggdrasil:~$ cpan Bundle::Siebel::MonitoringTools
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN::SQLite not installed, trying to work without
Reading '/home/alceu/.cpan/Metadata'
  Database was generated on Sun, 27 Nov 2016 21:29:02 GMT
Reading '/home/alceu/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Reading '/home/alceu/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Tue, 03 Jan 2017 21:17:02 GMT
.............
  New CPAN.pm version (v2.14) available.
  [Currently running version is v2.11]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.

.......................^C

Ouch! I hit CRTL+C to abort because I wouldn't be able to install anything with the standard perl on Ubuntu.

Maybe I reached a bug with perlbrew instead? I'll try to compile another perl without using perlbrew and see what happens.