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

Hello, I have a new computer with Windows 10. I have installed Strawberry Perl 5.22.1.2 with no problem and want to install PDF::API2 which I use in a program I wrote. However, I always get the same error. I use the command cpan PDF::API2 in a DOS window running as administrator.

C:\Windows\system32>cpan PDF::API2 Loading internal null logger. Install Log::Log4perl for logging messag +es CPAN: CPAN::SQLite loaded ok (v0.211) Database was generated on Tue, 19 Jan 2016 18:03:37 GMT Running install for module 'PDF::API2' CPAN: Digest::SHA loaded ok (v5.95) CPAN: Compress::Zlib loaded ok (v2.069) Checksum for C:\STRAWB~1\cpan\sources\authors\id\S\SS\SSIMMS\PDF-API2- +2.025.tar.gz ok CPAN: Archive::Tar loaded ok (v2.04) CPAN: File::Temp loaded ok (v0.2304) Couldn't move C:\STRAWB~1\cpan\build\tmp-9636\PDF-API2-2.025\lib to C: +\STRAWB~1\cpan\build\PDF-API2-2.025-JGJwQD\lib: No such file or direc +tory at C:\Strawberry\perl\lib/CPAN/Distribution.pm line 571. CPAN::Distribution::run_preps_on_packagedir(CPAN::Distribution +=HASH(0x3843644)) called at C:\Strawberry\perl\lib/CPAN/Distribution. +pm line 388 CPAN::Distribution::get(CPAN::Distribution=HASH(0x3843644)) ca +lled at C:\Strawberry\perl\lib/CPAN/Distribution.pm line 1847 CPAN::Distribution::prepare(CPAN::Distribution=HASH(0x3843644) +) called at C:\Strawberry\perl\lib/CPAN/Distribution.pm line 2127 CPAN::Distribution::make(CPAN::Distribution=HASH(0x3843644)) c +alled at C:\Strawberry\perl\lib/CPAN/Distribution.pm line 3485 CPAN::Distribution::test(CPAN::Distribution=HASH(0x3843644)) c +alled at C:\Strawberry\perl\lib/CPAN/Distribution.pm line 3891 CPAN::Distribution::install(CPAN::Distribution=HASH(0x3843644) +) called at C:\Strawberry\perl\lib/CPAN/Module.pm line 479 eval {...} called at C:\Strawberry\perl\lib/CPAN/Module.pm lin +e 478 CPAN::Module::rematein(CPAN::Module=HASH(0x38433ec), "install" +) called at C:\Strawberry\perl\lib/CPAN/Module.pm line 587 CPAN::Module::install(CPAN::Module=HASH(0x38433ec)) called at +C:\Strawberry\perl\lib/CPAN/Shell.pm line 1896 CPAN::Shell::rematein("CPAN::Shell", "install", "PDF::API2") c +alled at C:\Strawberry\perl\lib/CPAN/Shell.pm line 2063 CPAN::Shell::__ANON__("CPAN::Shell", "PDF::API2") called at C: +/Strawberry/perl/lib/App/Cpan.pm line 592 App::Cpan::__ANON__("PDF::API2") called at C:/Strawberry/perl/ +lib/App/Cpan.pm line 601 App::Cpan::_default(ARRAY(0xa7784c), HASH(0x32e5cec)) called a +t C:/Strawberry/perl/lib/App/Cpan.pm line 516 App::Cpan::run("App::Cpan", "PDF::API2") called at C:\Strawber +ry\perl\bin/cpan.bat line 25

The source directory exists but the destination directory doesn't. It exists upto \lib. I have installed this module on several versions of Windows without problem. Should I downgrade the version of Perl? Has anyone else had this problem?

Replies are listed 'Best First'.
Re: Can't install PDF::API2 on Windows 10
by syphilis (Archbishop) on Feb 09, 2016 at 22:09 UTC
    I use the command cpan PDF::API2 in a DOS window running as administrator

    Does it make any difference if you run as user ?

    Cheers,
    Rob

      Hi Rob,

      I tried installing as my normal self and it worked!!! I will never understand the mysteries of Microsoft. How can a normal user have permissions to do something the administrator can't?

      In any case, that solved my problem. Thanks so much for the suggestion!

Re: Can't install PDF::API2 on Windows 10
by poj (Abbot) on Feb 09, 2016 at 21:03 UTC
    Has anyone else had this problem?

    Not me, PDF::API2 installed OK on Win 10 Pro using the portable edition 5.22.1.2-64bit

    poj
Re: Can't install PDF::API2 on Windows 10
by Lotus1 (Vicar) on May 26, 2017 at 17:36 UTC

    I had the same or a very similar problem the first time I tried to install PDF::API2 on a Windows 7 laptop. I immediately tried it again and it worked without me changing anything. Both times I was logged into the machine with only user level access.