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?


In reply to Can't install PDF::API2 on Windows 10 by apadamson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.