How to check the integrity of installed perl modules?

I have MacPorts and CPAN installed, and I just found out that it’s bad to use them at the same time. I recently installed perl 5.13.9 via CPAN, as it had some updated modules that the program requested. This perl is installed in / usr / local / bin. Then MacPorts upgraded its perl to 5.12.3 (/ opt / local / bin) and complained that it could not complete the installation because some .3pm files already existed (e.g. cpan.3pm). I force installed, and MacPorts mv'd offensive files to the backup name. The next time I used CPAN, it went through the configuration steps again, so I wonder if I need to get these files back and / or delete perl5.12.3 / 5.13.9 again. It would be nice to issue a command in Terminal to see / check if all modules still work correctly. And in general, I wonderhow to combine CPAN and MacPorts safely.

reference

On OS X 10.6.6.

change

See below.

+3
source share
2 answers

I fixed it! For reference to other MacPorts / CPAN users:

I ended up forcibly removing Perl5 and CPAN from MacPorts and cleaning ~ / .cpan. A sudo find /opt -name cpan(or perl5) should result in only a few ports.

Reinstall perl5. I also ran sudo port upgrade outdated.

From now on, install only perl modules through MacPorts instead of CPAN. For example, digest :: SHA is p5-digest-sha on MacPorts.

For what is available only for CPAN, use cpan2port, following the simple instructions here.

+3
source

, Perl , , .

Perl, . , brian d foy

Perl, CPAN , Chas. Owens .

0

All Articles