DanEllison has asked for the wisdom of the Perl Monks concerning the following question:

Earlier I found /usr/bin/perl linked to the 32bit version on a 64bit machine. I got that changed so perl is now running 64bit. However, when I try to install modules using 'cpan', it apparently wants to still compile 32bit.

If I go into the build directory and execute the "perl Makefile.PL" and "make" myself, it compiles correctly in 64bit. Why does cpan want to compile 32bit?

Replies are listed 'Best First'.
Re: cpan Compiling 32bit by default
by MidLifeXis (Monsignor) on Jul 09, 2014 at 16:50 UTC

    Which version of perl is cpan running with? Look for the shebang line in `which cpan`. My guess is that the cpan script is running with the system version of perl (via the shebang line, likely 32-bit), but you have the 64-bit version of perl earlier in your path, so perl Makefile.PL finds that one.

    --MidLifeXis