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 fail to install any module #13853

Closed
p5pRT opened this issue May 17, 2014 · 8 comments
Closed

cpan fail to install any module #13853

p5pRT opened this issue May 17, 2014 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented May 17, 2014

Migrated from rt.perl.org#121901 (status was 'rejected')

Searchable as RT121901$

@p5pRT
Copy link
Author

p5pRT commented May 17, 2014

From me@shadsterling.com

Created by me@shadsterling.com

Any attempt to install a module with (macports) cpan fails with the following error​:

Can't locate object method "requirements_for_module" via package "CPAN​::Meta​::Requirements" at /opt/local/lib/perl5/5.16.3/CPAN/Distribution.pm line 2802.

Perl Info

Flags:
    category=core
    severity=high

Site configuration information for perl 5.16.3:

Configured by polyergic at Fri Apr  4 12:11:15 EDT 2014.

Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
   
  Platform:
    osname=darwin, osvers=13.1.0, archname=darwin-thread-multi-2level
    uname='darwin laconic 13.1.0 darwin kernel version 13.1.0: thu jan 16 19:40:37 pst 2014; root:xnu-2422.90.20~2release_x86_64 x86_64 '
    config_args='-D inc_version_list=5.16.1/darwin-thread-multi-2level 5.16.1 5.16.0/darwin-thread-multi-2level 5.16.0 -des -Dprefix=/opt/local -Dscriptdir=/opt/local/bin -Dcppflags=-I/opt/local/include -Dccflags=-pipe -Os   -Dldflags=-L/opt/local/lib -Wl,-headerpad_max_install_names   -Dvendorprefix=/opt/local -Dusemultiplicity=y -Dusethreads -Duseshrplib -D cc=/usr/bin/clang -D ld=/usr/bin/clang -D man1ext=1pm -D man3ext=3pm -D man1dir=/opt/local/share/man/man1p -D man3dir=/opt/local/share/man/man3p -D sitebin=/opt/local/libexec/perl5.16/sitebin -D siteman1dir=/opt/local/share/perl5.16/siteman/man1 -D siteman3dir=/opt/local/share/perl5.16/siteman/man3 -D vendorbin=/opt/local/libexec/perl5.16 -D vendorman1dir=/opt/local/share/perl5.16/man/man1 -D vendorman3dir=/opt/local/share/perl5.16/man/man3 -D pager=/usr/bin/less -sR -D perlpath=/opt/local/bin/perl5.16 -D startperl=#!/opt/local/bin/perl5.16'
    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='/usr/bin/clang', ccflags ='-pipe -Os   -fno-common -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing -fstack-protector -I/opt/local/include',
    optimize='-O3',
    cppflags='-I/opt/local/include -pipe -Os  -fno-common -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing -fstack-protector -I/opt/local/include'
    ccversion='', gccversion='4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)', 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 /usr/bin/clang', ldflags ='-L/opt/local/lib -Wl,-headerpad_max_install_names   -fstack-protector'
    libpth=/opt/local/lib /usr/lib
    libs=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-L/opt/local/lib -Wl,-headerpad_max_install_names   -bundle -undefined dynamic_lookup -fstack-protector'

Locally applied patches:
    


@INC for perl 5.16.3:
    /sw/lib/perl5
    /sw/lib/perl5/darwin
    /opt/local/lib/perl5/site_perl/5.16.3/darwin-thread-multi-2level
    /opt/local/lib/perl5/site_perl/5.16.3
    /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level
    /opt/local/lib/perl5/vendor_perl/5.16.3
    /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level
    /opt/local/lib/perl5/5.16.3
    /opt/local/lib/perl5/site_perl
    /opt/local/lib/perl5/vendor_perl/5.16.1/darwin-thread-multi-2level
    /opt/local/lib/perl5/vendor_perl/5.16.1
    /opt/local/lib/perl5/vendor_perl
    .


Environment for perl 5.16.3:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/polyergic
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LC_ALL=en_US.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/Library/Frameworks/Python.framework/Versions/3.2/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/polyergic/bin/mac:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/Users/polyergic/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/texbin:/opt/local/libexec/gnubin/
    PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented May 17, 2014

From @jkeenan

On Sat May 17 06​:56​:38 2014, me@​shadsterling.com wrote​:

This is a bug report for perl from me@​shadsterling.com,
generated with the help of perlbug 1.39 running under perl 5.16.3.

-----------------------------------------------------------------
[Please describe your issue here]

Any attempt to install a module with (macports) cpan fails with the
following error​:

Can't locate object method "requirements_for_module" via package
"CPAN​::Meta​::Requirements" at
/opt/local/lib/perl5/5.16.3/CPAN/Distribution.pm line 2802.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags​:
category=core
severity=high
---
Site configuration information for perl 5.16.3​:

Configured by polyergic at Fri Apr 4 12​:11​:15 EDT 2014.

Summary of my perl5 (revision 5 version 16 subversion 3)
configuration​:

Platform​:
osname=darwin, osvers=13.1.0, archname=darwin-thread-multi-2level

1. Can you supply the version of the CPAN library you were using?

perl -MCPAN -E 'say $CPAN​::VERSION'

2. Since CPAN.pm is primarily maintained on CPAN (as opposed to being maintained by Perl 5 Porters), I suspect this ticket will have to be moved to that library's own bug queue at rt.cpan.org.

Thank you very much.
Jim Keenan

@p5pRT
Copy link
Author

p5pRT commented May 17, 2014

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

@p5pRT
Copy link
Author

p5pRT commented May 17, 2014

From @jkeenan

On Sat May 17 06​:56​:38 2014, me@​shadsterling.com wrote​:

This is a bug report for perl from me@​shadsterling.com,
generated with the help of perlbug 1.39 running under perl 5.16.3.

-----------------------------------------------------------------
[Please describe your issue here]

Any attempt to install a module with (macports) cpan fails with the
following error​:

Can't locate object method "requirements_for_module" via package
"CPAN​::Meta​::Requirements" at
/opt/local/lib/perl5/5.16.3/CPAN/Distribution.pm line 2802.

I believe you have some sort of confusion among various versions of the CPAN libraries installed on your system.

AFAICT, the version of the CPAN library that came with perl 5.16.3 was 1.9800.

#####
$ which perl
/home/jkeenan/perl5/perlbrew/perls/perl-5.16.3/bin/perl
$ perl -MCPAN -E 'say $CPAN​::VERSION'
1.9800
#####

But the string "requirements_for_module" does not appear in CPAN/Distribution.pm in 1.9800. AFAICT, it first appears in the TRIAL version 2.04​: http​://preview.tinyurl.com/ooqrfvf

... or, with respect to released versions, 2.05.

Is it possible that your Macports version of the 'cpan' utility is associated with v2.05 of the CPAN library?

Thank you very much.
Jim Keenan

@p5pRT
Copy link
Author

p5pRT commented May 20, 2014

From me@shadsterling.com

On Sat May 17 08​:22​:22 2014, jkeenan wrote​:

On Sat May 17 06​:56​:38 2014, me@​shadsterling.com wrote​:

This is a bug report for perl from me@​shadsterling.com,
generated with the help of perlbug 1.39 running under perl 5.16.3.

-----------------------------------------------------------------
[Please describe your issue here]

Any attempt to install a module with (macports) cpan fails with the
following error​:

Can't locate object method "requirements_for_module" via package
"CPAN​::Meta​::Requirements" at
/opt/local/lib/perl5/5.16.3/CPAN/Distribution.pm line 2802.

I believe you have some sort of confusion among various versions of
the CPAN libraries installed on your system.

AFAICT, the version of the CPAN library that came with perl 5.16.3 was
1.9800.

#####
$ which perl
/home/jkeenan/perl5/perlbrew/perls/perl-5.16.3/bin/perl
$ perl -MCPAN -E 'say $CPAN​::VERSION'
1.9800
#####

But the string "requirements_for_module" does not appear in
CPAN/Distribution.pm in 1.9800. AFAICT, it first appears in the TRIAL
version 2.04​: http​://preview.tinyurl.com/ooqrfvf

... or, with respect to released versions, 2.05.

Is it possible that your Macports version of the 'cpan' utility is
associated with v2.05 of the CPAN library?

Thank you very much.
Jim Keenan

Yes, I have cpan 2.05 with perl 5.16.3 - looks like something's out of sync in the macports packaging. cpan 2.05 is provided by macports package perl5, and perl 5.16.3 is selected by choosing a variant of that package (currently the default variant), perl5+perl5_16.

See macports bug #43741, https://trac.macports.org/ticket/43741

@p5pRT
Copy link
Author

p5pRT commented May 21, 2014

From me@shadsterling.com

On Tue May 20 12​:37​:03 2014, me@​shadsterling.com wrote​:

On Sat May 17 08​:22​:22 2014, jkeenan wrote​:

On Sat May 17 06​:56​:38 2014, me@​shadsterling.com wrote​:

This is a bug report for perl from me@​shadsterling.com,
generated with the help of perlbug 1.39 running under perl 5.16.3.

-----------------------------------------------------------------
[Please describe your issue here]

Any attempt to install a module with (macports) cpan fails with the
following error​:

Can't locate object method "requirements_for_module" via package
"CPAN​::Meta​::Requirements" at
/opt/local/lib/perl5/5.16.3/CPAN/Distribution.pm line 2802.

I believe you have some sort of confusion among various versions of
the CPAN libraries installed on your system.

AFAICT, the version of the CPAN library that came with perl 5.16.3
was
1.9800.

#####
$ which perl
/home/jkeenan/perl5/perlbrew/perls/perl-5.16.3/bin/perl
$ perl -MCPAN -E 'say $CPAN​::VERSION'
1.9800
#####

But the string "requirements_for_module" does not appear in
CPAN/Distribution.pm in 1.9800. AFAICT, it first appears in the
TRIAL
version 2.04​: http​://preview.tinyurl.com/ooqrfvf

... or, with respect to released versions, 2.05.

Is it possible that your Macports version of the 'cpan' utility is
associated with v2.05 of the CPAN library?

Thank you very much.
Jim Keenan

Yes, I have cpan 2.05 with perl 5.16.3 - looks like something's out of
sync in the macports packaging. cpan 2.05 is provided by macports
package perl5, and perl 5.16.3 is selected by choosing a variant of
that package (currently the default variant), perl5+perl5_16.

See macports bug #43741, https://trac.macports.org/ticket/43741

By uninstalling and reinstalling the macports packages, cpan was reverted to matching version 1.98. cpan sometimes gives warnings that a new version of cpan is available, and running $(cpan CPAN) will update something to an incompatible version. It looks like the bug is that cpan will break itself with that update.

@p5pRT
Copy link
Author

p5pRT commented May 21, 2014

From @jkeenan

On Wed May 21 08​:09​:05 2014, me@​shadsterling.com wrote​:

On Tue May 20 12​:37​:03 2014, me@​shadsterling.com wrote​:

On Sat May 17 08​:22​:22 2014, jkeenan wrote​:
[snip]

I believe you have some sort of confusion among various versions of
the CPAN libraries installed on your system.

AFAICT, the version of the CPAN library that came with perl 5.16.3
was
1.9800.

#####
$ which perl
/home/jkeenan/perl5/perlbrew/perls/perl-5.16.3/bin/perl
$ perl -MCPAN -E 'say $CPAN​::VERSION'
1.9800
#####

But the string "requirements_for_module" does not appear in
CPAN/Distribution.pm in 1.9800. AFAICT, it first appears in the
TRIAL
version 2.04​: http​://preview.tinyurl.com/ooqrfvf

... or, with respect to released versions, 2.05.

Is it possible that your Macports version of the 'cpan' utility is
associated with v2.05 of the CPAN library?

Thank you very much.
Jim Keenan

Yes, I have cpan 2.05 with perl 5.16.3 - looks like something's out
of
sync in the macports packaging. cpan 2.05 is provided by macports
package perl5, and perl 5.16.3 is selected by choosing a variant of
that package (currently the default variant), perl5+perl5_16.

See macports bug #43741, https://trac.macports.org/ticket/43741

By uninstalling and reinstalling the macports packages, cpan was
reverted to matching version 1.98. cpan sometimes gives warnings that
a new version of cpan is available, and running $(cpan CPAN) will
update something to an incompatible version. It looks like the bug is
that cpan will break itself with that update.

I've taken a look at the macports Trac ticket you listed above. While I haven't used macports myself in several years, the sort of problem you describe there reminds me of problems that I used to encounter when I tried *mixing* different ways of installing CPAN modules on the same machine. At one point on a particular iBook G4, I had modules installed via 'cpan', 'cpanplus', 'macports', 'darwinports' and 'fink'. Confusion abounded!

Hence, it's not surprising to me that you encounter problems when mixing 'cpan' and 'macports' -- even though you probably had good reason to do so.

In any case, as I noted in one of my posts on May 17, the 'cpan' utility and the larger 'CPAN' library are primarily maintained on CPAN itself -- not in the Perl 5 core distribution. As such, if there is a bug in 'cpan' or the 'CPAN' library -- and I'm not persuaded that there is -- then it needs to be reported as a new bug in CPAN's own bug queue, located at https://rt.cpan.org//Dist/Display.html?Queue=CPAN.

Since there's no bug located within the scope of what Perl 5 Porters are responsible for, I'm going to close this ticket.

Thank you very much.
Jim Keenan

@p5pRT p5pRT closed this as completed May 21, 2014
@p5pRT
Copy link
Author

p5pRT commented May 21, 2014

@jkeenan - Status changed from 'open' to 'rejected'

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