[MacPorts] #43741: cpan fails to install any module
#43741: cpan fails to install any module --------------------+-------------------------------- Reporter: me@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: perl5.16 --------------------+-------------------------------- Any attempt to install a module with 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.` perl5.16 @5.16.3_0+universal and p5.16-cpan-meta-requirements @2.125.0_0 are installed and active. -- Ticket URL: <https://trac.macports.org/ticket/43741> MacPorts <http://www.macports.org/> Ports system for OS X
#43741: cpan fails to install any module -----------------------+-------------------------------- Reporter: me@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: perl5.16 | -----------------------+-------------------------------- Comment (by mf2k@…): Have you seen [wiki:howto/cpan2port this wiki page]? -- Ticket URL: <https://trac.macports.org/ticket/43741#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43741: cpan fails to install any module -----------------------+-------------------------------- Reporter: me@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: perl5.16 | -----------------------+-------------------------------- Comment (by ryandesign@…): Does this problem occur when you install p5.16-* ports, or only when you try to install modules outside of MacPorts using the `cpan` command? If only the latter, then we recommend installing p5.16 ports instead. If a port for the module you want is missing, you can create and hopefully submit one as mf2k said above. -- Ticket URL: <https://trac.macports.org/ticket/43741#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43741: cpan fails to install any module -----------------------+-------------------------------- Reporter: me@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: perl5.16 | -----------------------+-------------------------------- Comment (by me@…): It occurs only when I try to install modules using the `cpan` command, which I've only done for modules that are not available as ports (specifically, IO::Socket::INET6). If I can get cpan to work I would prefer the one-command install to the lengthy process on the wiki page. Judging by the responses on [https://rt.perl.org/Ticket/Display.html?id=121901 perl bug #121901], the problem is that the macports package `perl5 @5.12.4_0+perl5_16` includes a version of `/opt/local/bin/cpan` that is incompatible with perl 5.16.3. (My perl5.16 was installed as a dependency of perl5.) I have cpan version 2.05, but for perl 5.16.3 it should be cpan version 1.98. -- Ticket URL: <https://trac.macports.org/ticket/43741#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43741: cpan fails to install any module -----------------------+-------------------------------- Reporter: me@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: perl5.16 | -----------------------+-------------------------------- Comment (by me@…): By uninstalling and reinstalling perl5 and perl5.16, cpan was reverted to the matching version 1.98. Now it looks like telling cpan to update itself will update cpan to an incompatible version. -- Ticket URL: <https://trac.macports.org/ticket/43741#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts