pela has asked for the wisdom of the Perl Monks concerning the following question:
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
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.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>
I gave up and tried downloading and uncompressing the module manually instead. In the uncompressed directory, where Makefile.pl etc are, I did
"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.>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'
How do others do?
|
---|