Subject: | upgrade to CPAN 2.05 does not work cleanly |
Date: | Thu, 10 Jul 2014 12:49:59 -0700 |
To: | bug-CPAN [...] rt.cpan.org |
From: | Jeff Janes <jeff.janes [...] gmail.com> |
If I start up a fresh Amazon Linux (ami-76817c1e) instance and install
CPAN, I get a problem when I then try to upgrade CPAN from 1.9800 to 2.05.
sudo yum update
sudo yum install cpan
sudo cpan CPAN < /dev/null
....
Can't locate CPAN/Meta/Requirements.pm in @INC
It is fairly easy to work around this by just explicitly installing
CPAN/Meta/Requirements before doing the upgrade. But shouldn't the old
version of cpan know what the new one's prereqs are, and either install
them, or produce a more graceful error message?
The real problem I ran into on CentOS6.5 was worse, as the upgrade claimed
to succeed, but then left behind a broken install which could not be easily
fixed because I could no longer use CPAN to fix it. However, I can't give
a reproducible test case of that situation, as I can't just spin up virgin
installations of CentOS6.5 at will to test on. Hopefully solving the
problem in Amazon Linux will also solve it for CentOS6.5, as they do seem
to be highly related.
Cheers,
Jeff