Hi Monks,

I appologize if the answer to this question is already somewhere in the perlmonks pages, but I have spent the whole day trying to find a solution to the problem on the internet, and now I'm tired of searching. So I hope you can help me anyway... :)

My Perl experience is that I have successfully written perl scripts and run them both under Linux and Windows, but I have never installed Perl (until today) and I have never installed modules. So my question may be stupid. I hope to learn more here.

The question: what steps are needed to install CPAN's Win32::Clipboard for Strawberry Perl under Windows Vista? I have unsuccessfully tried the CPAN Client, and also tried do download and dmake manually.

In the CPAN Client approach, I did the following. I started the CPAN Client by clicking the Start button and then All Programs->Strawberry Perl->Tools->CPAN Client. In the CPAN client I wrote get Win32::Clipboard (I have also tried install and some other alternatives instead of get.) The response is

cpan> get Win32::Clipboard Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[500] message[read timeout] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp6128'. Giving up on it. Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp6128'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\WINDOWS +\system32\ ftp.EXE' to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp6128'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[500] message[read timeout] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp6128'. Giving up on it. Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp6128'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\WINDOWS +\system32\ ftp.EXE' to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp6128'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit Please check, if the URLs I found in your configuration file (http://cpan.strawberryperl.com/) are valid. The urllist can be edited +. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz cpan>
So CPAN client isn't able to download http://cpan.strawberryperl.com/authors/01mailrc.txt.gz . Why? I'm not behind a proxy, I have tried with the firewall disabled, and there's no problem getting the file with Internet Explorer. Somewhere on the web I found a tip that if there is an environment variable called FTP_DISABLE or something (but that's a Linux variable I guess, not a Windows one?). I checked and found a system variable called FTP_PASSIVE, which had the value 1. I changed to 0, but no success. What does that variable mean? (I know, that's not a Perl question, but I guess Monks know everything... :-) ) And why is that file needed? When I got it with IE and uncompressed it, it just contained a bunch of aliases and email addresses.

I gave up and tried downloading and uncompressing the module manually instead. In the uncompressed directory, where Makefile.pl etc are, I did

>perl makefile.pl Writing Makefile for Win32::Clipboard >dmake cp Clipboard.pm blib\lib\Win32\Clipboard.pm C:\strawberry\perl\bin\perl.exe -IC:\strawberry\perl\lib -IC:\strawber +ry\perl\lib C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\straw +berry\perl\lib\ExtUtils\typemap Clipboard.xs>xstmp.c && C:\strawberry +\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- xstmp.c Clipboard.c +pp gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE - +DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms- +bitfields -DPERL_MSVC RT_READFIX -s -O2 -DVERSION=\"0.56\" -DXS_VERSION=\"0.56\" + "-IC:\str awberry\perl\lib\CORE" Clipboard.cpp Det går inte att köra det angivna programmet. dmake: Error code 129, while making 'Clipboard.o'
"Det går inte att köra det angivna programmet." means "Unable to run the given program". Maybe the command line is too long, I believe max is 256 characters in Windows.

How do others do?


In reply to Problems installing CPAN Win32::Clipboard for Strawberry Perl under Windows Vista by pela

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.