How is the script installing them? Your best bet is to run
and then
(you may need to do this as root).
Also running 5.8.0 seems like a bad idea. You should probably be running 5.8.x where x is the highest available number as this will contain a large number of bug fixes but will be "the same" as 5.8.0 . Apart from that, I don't know anything about CentOS or Apache's interactions with Test::Deep (I doubt it has any but some of the modules want it for testing).
Aha. The tests are failing and it is due to a bug in perl 5.8.0, if I recall, related to taking weak references. This bug is fixed in perl 5.8.something and is not related to Test::Deep - it can break other things too, although not much uses weak references.
So you have 2 choices,
- Install the module anyway (man CPAN to find out how to ignore failing tests or just install it by hand), I'm not sure exactly what will break but it might be that the Apache stuff doesn't do anything that will cause a problem.
- Upgrade your Perl. There are lots of other things fixed between 5.8.0 and 5.8.8 (the latest 5.8 release). This will prevent you running into mysterious bugs with other modules too
Finally, for the infinite loop, I just glanced at the script you posted and it seems that this script is just reimplementing a part of CPAN.pm. It would be better to just get CPAN.pm to do all the work here by telling it to install "all these modules and their dependencies". Instead, the script uses CPAN.pm but ends up in an infinite loop when Test::Deep's tests fail.
I expect that since mod_perl is a binary module it needs to be installed once per perl interpreter version. Certainly perl5.8.8 would not look in the 5.8.0 library directory by default. You might get away with just adding that to the perl search path ($PERL5LIB env variable will do that) because there should not have been any ABI changes between 5.8.0 and 5.8.8 but I think you would be better off installing a 5.8.8 specific mod_perl with something like
and you should end up able to continue. To be honest, I don't do any mod_perl stuff so I don't really know.
You should ask the mod_perl people, I have no clue about the mod_perl install process.