Subject: | perl Makefile.PL dies in 1.076 |
I get this error, both in CPAN shell and command line:
# perl Makefile.PL
Can't locate Readonly.pm in @INC (@INC contains: [...snip...]) at
lib/Perl/Critic/Utils.pm line 15.
BEGIN failed--compilation aborted at lib/Perl/Critic/Utils.pm line 15.
Compilation failed in require at Makefile.PL line 21.
BEGIN failed--compilation aborted at Makefile.PL line 21.
I [snipped] out the paths in @INC because Readonly.pm was indeed not on
the system. But since the 'perl Makefile.PL' stage dies, the CPAN shell
never even gets to running 'make', which would be the point where it
would try to pull that module in as a prereq.
So the problems is having the Makefile.PL do
use Perl::Critic::Utils qw< :characters >;
and having lib/Perl/Critic/Utils.pm do
use Readonly;
which causes the die.
I've installed Readonly by hand, and the problem then goes away.
This is perl 5.8.5 on RHEL4.