Now what?

Now, you need to

  • download Win32::Clipboard-052.tar.gz from cpan
  • put it into a directory
  • gunzip it
  • untar it
  • check that your compiler environment variables are set up (type set at the cmd prompt and look for INCLUDE=... and LIB=.. etc. If not, check the bin directory where you installed the compiler for a file named something similar to mscvars.bat, and then run it.
  • run makefile.pl
  • then nmake
  • then nmake test

    That will al look something like this:

    c:\Perl\packages>wget -c http://cpan.m.flirble.org/authors/id/H/HI/HIM +AZU/Win32/Win32-Clipboard-0.52.tar.gz --22:24:10-- http://cpan.m.flirble.org/authors/id/H/HI/HIMAZU/Win32/W +in32-Clipboard-0.52.tar.gz => `Win32-Clipboard-0.52.tar.gz' Resolving cpan.m.flirble.org... done. Connecting to cpan.m.flirble.org[212.134.1.32]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 17,739 [application/x-tar] 100%[====================================>] 17,739 3.52K/s +ETA 00:00 22:24:15 (3.52 KB/s) - `Win32-Clipboard-0.52.tar.gz' saved [17739/1773 +9] c:\Perl\packages>gunzip Win32-Clipboard-0.52.tar.gz gunzip: Win32-Clipboard-0.52.tar already exists; do you wish to overwr +ite (y or n)? y c:\Perl\packages>tar -xvf Win32-Clipboard-0.52.tar Win32-Clipboard-0.52/ Win32-Clipboard-0.52/ChangeLog Win32-Clipboard-0.52/Clipboard.html Win32-Clipboard-0.52/Clipboard.pm Win32-Clipboard-0.52/Clipboard.xs Win32-Clipboard-0.52/Makefile Win32-Clipboard-0.52/Makefile.PL Win32-Clipboard-0.52/MANIFEST Win32-Clipboard-0.52/META.yml Win32-Clipboard-0.52/README Win32-Clipboard-0.52/README.txt Win32-Clipboard-0.52/samples/ Win32-Clipboard-0.52/samples/bitmap.pl Win32-Clipboard-0.52/samples/monitor.pl Win32-Clipboard-0.52/samples/test-tie.pl Win32-Clipboard-0.52/samples/test.pl Win32-Clipboard-0.52/t/ Win32-Clipboard-0.52/t/test.t c:\Perl\packages>cd Win32-Clipboard-0.52 c:\Perl\packages\Win32-Clipboard-0.52>makefile.pl Name "main::BORLAND" used only once: possible typo at c:\Perl\packages +\Win32-Clipboard-0.52\Makefile.PL line 9. Writing Makefile for Win32::Clipboard c:\Perl\packages\Win32-Clipboard-0.52>nmake Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. cp Clipboard.pm blib\lib\Win32\Clipboard.pm C:\Perl\bin\perl.exe -Ic:\Perl\lib -Ic:\Perl\lib C:\Perl\lib\E +xtUtils/xsubpp -typemap C:\Perl\lib\ExtUtils\typ cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED - cl : Command line warning D4029 : optimization is not available in the + standard edition compiler Clipboard.cpp Clipboard.xs(470) : warning C4018: '<' : signed/unsigned mismatch Clipboard.xs(539) : warning C4018: '<' : signed/unsigned mismatch Running Mkbootstrap for Win32::Clipboard () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Clipboar +d.bs C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('N +AME'=>\"Win32::Clipboard\", 'DLBASE' => 'Clipboar link -out:blib\arch\auto\Win32\Clipboard\Clipboard.dll -dll -n +ologo -nodefaultlib -debug -opt:ref,icf -libpath Creating library blib\arch\auto\Win32\Clipboard\Clipboard.lib and o +bject blib\arch\auto\Win32\Clipboard\Clipboard.ex C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arc +h\auto\Win32\Clipboard\Clipboard.dll C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Clipboard.bs bl +ib\arch\auto\Win32\Clipboard\Clipboard.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arc +h\auto\Win32\Clipboard\Clipboard.bs c:\Perl\packages\Win32-Clipboard-0.52>nmake test Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harn +ess(0, 'blib\lib', 'blib\arch')" t\test.t t\test....ok All tests successful. Files=1, Tests=9, 0 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 C +PU) c:\Perl\packages\Win32-Clipboard-0.52>

    When you get to the point where you see "All tests successful.", come back and I'll tell you how to apply the patch.

    And please, do go back and read those guidelines again, carefully. Believe me, everything you need to know is there, has been vetted, often through use, by many of the monks here, and is much more clearly explained, with less likelyhood of errors, than I can do it.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

    In reply to Re^9: Move/Copy files using Clipboard! by BrowserUk
    in thread Move/Copy files using Clipboard! by Ace128

    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.