Your Perl was built with specific tools and specific paths to those tools locked into the configuration. CPAN.pm is merely using those paths. If the build environment is no longer available, you're gonna have a lot more trouble than its worth. Probably best to build a new Perl from scratch in your current environment, and then proceeding from there.