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

There have been similar threads to this but (without spending HOURS searching everything) nothing that I have found here or on the web helps. I am trying to install Tk via Cpan on my W10 64 bit laptop but this fails (last details replicated below) I have tried Strawberry Perl and Active Perl but both fail the installation for basically the same reason about file/directory not found. (I am trying to install and IDE/debugger but am getting frustrated with this fault as it crops up with whatever one I choose - Geany/Padre/etc. I would have thought that the build file would have been thoroughly tested by now on W10 machines but am now not so sure ... Is the mix of "\" and "/" characters in the paths something to do with it?

.... Tk-804.033/PNG/zlib/contrib/masmx86/gvmat32c.c Tk-804.033/PNG/zlib/contrib/masmx86/bld_ml32.bat ** ETC ETC *** Tk-804.033/pod/pTk/GetUid.pod CPAN: File::Temp loaded ok (v0.2304) Couldn't move C:\Perl64\cpan\build\tmp-8764\Tk-804.033\pTk to C:\Perl6 +4\cpan\build\Tk-804.033-F8ujrd\pTk: No such file or directory at C:\P +erl64\lib/CPAN/Distribution.pm line 571. CPAN::Distribution::run_preps_on_packagedir(CPAN::Distribution +=HASH(0x10c5f0f0)) called at C:\Perl64\lib/CPAN/Distribution.pm line +388 CPAN::Distribution::get(CPAN::Distribution=HASH(0x10c5f0f0)) c +alled at C:\Perl64\lib/CPAN/Distribution.pm line 1847 CPAN::Distribution::prepare(CPAN::Distribution=HASH(0x10c5f0f0 +)) called at C:\Perl64\lib/CPAN/Distribution.pm line 2127 CPAN::Distribution::make(CPAN::Distribution=HASH(0x10c5f0f0)) +called at C:\Perl64\lib/CPAN/Distribution.pm line 3485 CPAN::Distribution::test(CPAN::Distribution=HASH(0x10c5f0f0)) +called at C:\Perl64\lib/CPAN/Distribution.pm line 3891 CPAN::Distribution::install(CPAN::Distribution=HASH(0x10c5f0f0 +)) called at C:\Perl64\lib/CPAN/Module.pm line 479 eval {...} called at C:\Perl64\lib/CPAN/Module.pm line 478 CPAN::Module::rematein(CPAN::Module=HASH(0x1511ae58), "install +") called at C:\Perl64\lib/CPAN/Module.pm line 587 CPAN::Module::install(CPAN::Module=HASH(0x1511ae58)) called at + C:\Perl64\lib/CPAN/Shell.pm line 1896 CPAN::Shell::rematein("CPAN::Shell", "install", "Tk") called a +t C:\Perl64\lib/CPAN/Shell.pm line 2063 CPAN::Shell::__ANON__("CPAN::Shell", "Tk") called at C:/Perl64 +/lib/App/Cpan.pm line 603 App::Cpan::__ANON__("Tk") called at C:/Perl64/lib/App/Cpan.pm +line 612 App::Cpan::_default(ARRAY(0xe42ee8), HASH(0x4582260)) called a +t C:/Perl64/lib/App/Cpan.pm line 516 App::Cpan::run("App::Cpan", "Tk") called at C:\Perl64\bin/cpan +.bat line 26

Replies are listed 'Best First'.
Re: CPAN Tk failure on Windows 10
by huck (Prior) on Apr 30, 2017 at 21:35 UTC
Re: CPAN Tk failure on Windows 10
by Marshall (Canon) on May 01, 2017 at 01:55 UTC
    With Active State, Tk comes pre-installed (at least it did on my Version 5.20). So there aren't any extra install steps for Tk.

    With Active State, I recommend always using the AS ppm (Perl Package Manager) utility. Do not use the cpan utility unless you have some very special situation. The cpan utility is available (use AS ppm to install it. Doing so will also install the correct compiler etc). I have never done a completely manual installation with Active State (haven't needed to - there are 20K+ pre-compiled packages in Active State's main repository). Type ppm on a command line and a GUI will start. Pretty self explanatory. Look in the alphabetic ppm package lists for additional Tk widgets that were not part of the default pre-installed stuff.

    update: I've been using AS and the ppm since Perl 5.6 and I don't remember seeing an installation fail. To be in the AS repository means that the tests run without errors and any compilation for XS code has already been done. So installations are pretty fast as this is basically just copying files around, except for the HTML doc generation which is done locally on your machine.

    So I think the easiest solution by far is to install Active State and just start using Tk. Look at the generated Tk HTML documentation to see what widgets you have.

Re: CPAN Tk failure on Windows 10
by gsd4me (Beadle) on May 07, 2017 at 08:18 UTC
    Thank you to both - the AV response is a possibility and needs a thorough investigation, if anyone would/could spare the time. In the end I *did* use PPM which solved my problem without any more hitches. ADB