in reply to Make ActivePerl use existing compiler

You said you have MinGW 4.8.1 installed and that the cpan command tried to install MinGW 4.6.3

The cpan command maybe actually meant you have a compiler different from the one that Perl was built with.

In general, it is better to compile XS modules with the same compiler, version and options as Perl itself. It may well be that an executable built with 4.6.3 can load modules built with 4.8.1 with no problems, but the cpan command may still be being conservative.

FWIW, one of the reasons I like the Strawberry Perl distribution (when I have to run Perl on MS Windows) is that it includes a copy of the compiler tool chain used to build the distribution.

Replies are listed 'Best First'.
Re^2: Make ActivePerl use existing compiler
by testuser448 (Initiate) on Aug 25, 2015 at 01:29 UTC
    I downloaded the Strawberry Perl portable version. It includes the MinGW compiler, but nothing is installed so it definitely would not mess up my existing MinGW installation, which was my fear when I saw "Downloading MinGW 4.6.3 ...". Thanks.