Click here to get back home

CPAN tool problems, Windows XP

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
CPAN tool problems, Windows XP Chris 11-06-2006
Posted by Chris on November 6, 2006, 7:26 pm
Please log in for more thread options


I'm having problems using CPAN under ActiveState Perl (version looks
like 5.6.1 as far as I can tell) on Windows XP Home. I installed
ActiveState Perl as straightforwardly as possible -- double-click on
the installer icon and let it run -- on an otherwise Perl-less machine
(no other/earlier versions previously present).

The FIRST time I try to use CPAN to install, say, Time::Format, I get a
series of messages indicating that various files --

\.cpan\sources\authorsmailrc.txt.gz
\.cpan\sources\modulespackages.details.txt.gz
\.cpan\sources\modulesmodlist.data.gz

-- are not retrieved from www.perl.org (or whatever the URL is; I don't
have a capture of that). On all subsequent attempts to use CPAN, then,
the above-mentioned files are reported as not containing what they're
supposed to. Inspection shows that the files EXIST but are EMPTY (0
bytes).

Seems to me I've done this successfully in the past -- but I don't
remember whether that was under Windows XP or on a different machine
running 2000.

Thanks in advance for any advice anyone can give me regarding getting
this to work. I use Perl at an "advanced beginner" stage sufficiently
frequently that I need it to work, but am not advanced enough to be
able to debug CPAN by my lonesome. :-)

The following, as best I can capture it, is what I see on the
non-first-time installations. I may be able to re-create the
first-time experience by deleting the affected files, but perhaps that
won't be necessary. Thanks again.

cpan shell -- CPAN exploration and modules installation (v1.59_54)
ReadLine support available (try 'install Bundle::CPAN')

CPAN: Storable loaded ok
Going to read \.cpan\sources\authorsmailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Going to read \.cpan\sources\modulespackages.details.txt.gz
Warning: Your \.cpan\sources\modulespackages.details.txt.gz
does not contain a Line-Count header.
Please check the validity of the index file by comparing it to
more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your \.cpan\sources\modulespackages.details.txt.gz
does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to
more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Going to read \.cpan\sources\modulesmodlist.data.gz
Can't locate object method "data" via package "CPAN::Modulelist"
(perhaps you forgot to load "CPAN::Modulelist"?) at (eval 9) line 1.
        CPAN::Index::rd_modlist('CPAN::Index',
'\.cpan\sources\modulesmodlist.data.gz') called at
c:/Perl/lib/CPAN.pm line 3002
        CPAN::Index::reload('CPAN::Index') called at c:/Perl/lib/CPAN.pm
line 620
        CPAN::exists('CPAN=3DHASH(0x19eb494)', 'CPAN::Module',
'Time::Format') called at c:/Perl/lib/CPAN.pm line 1735
        CPAN::Shell::expandany('CPAN::Shell', 'Time::Format') called at
c:/Perl/lib/CPAN.pm line 1969
        CPAN::Shell::rematein('CPAN::Shell', 'install', 'Time::Format')
called at c:/Perl/lib/CPAN.pm line 2056
        CPAN::Shell::install('CPAN::Shell', 'Time::Format') called at
c:/Perl/lib/CPAN.pm line 183
        eval called at c:/Perl/lib/CPAN.pm line 183
        CPAN::shell() called at -e line 1
=20
Lockfile removed.


Posted by John Bokma on November 6, 2006, 8:39 pm
Please log in for more thread options



> I'm having problems using CPAN under ActiveState Perl (version looks
> like 5.6.1 as far as I can tell) on Windows XP Home.

I recommend to use:
This is perl, v5.8.8 built for MSWin32-x86-multi-thread

furthermore, I always install modules using ppm, which comes with
ActiveState.

ppm install Time::Format


Posted by Chris on November 8, 2006, 11:56 pm
Please log in for more thread options



John Bokma wrote:
>
> > I'm having problems using CPAN under ActiveState Perl (version looks
> > like 5.6.1 as far as I can tell) on Windows XP Home.
>
> I recommend to use:
> This is perl, v5.8.8 built for MSWin32-x86-multi-thread

Thanks, I was thinking of upgrading, myself, and this just reinforces
the idea. I appreciate it.

> furthermore, I always install modules using ppm, which comes with
> ActiveState.
>
> ppm install Time::Format

Aha! THAT works! Simple solution. Thanks bunches!

Chris


Posted by harryfmudd [AT] comcast [DOT] on November 7, 2006, 11:23 am
Please log in for more thread options


Chris wrote:
> I'm having problems using CPAN under ActiveState Perl (version looks
> like 5.6.1 as far as I can tell) on Windows XP Home. I installed
> ActiveState Perl as straightforwardly as possible -- double-click on
> the installer icon and let it run -- on an otherwise Perl-less machine
> (no other/earlier versions previously present).
>
> The FIRST time I try to use CPAN to install, say, Time::Format, I get a
> series of messages indicating that various files --
>
> \.cpan\sources\authorsmailrc.txt.gz
> \.cpan\sources\modulespackages.details.txt.gz
> \.cpan\sources\modulesmodlist.data.gz
>
> -- are not retrieved from www.perl.org (or whatever the URL is; I don't
> have a capture of that). On all subsequent attempts to use CPAN, then,
> the above-mentioned files are reported as not containing what they're
> supposed to. Inspection shows that the files EXIST but are EMPTY (0
> bytes).

<snip content="capture of non-first-time installation" />

Second John Bokma's recommendation in the adjacent reply. But -

Are you behind a proxy server? If you are, you will need to correctly
configure LWP::UserAgent and/or define environment variable HTTP_PROXY
and/or FTP_PROXY to point to the correct server and port. This will need
to be done even if you use ppm.

My opinion is that CPAN does not work very well under Windows (and that
includes cygwin) because Windows won't let you replace a DLL that is in
use. This bites you when you install an update of an XS module that CPAN
actually uses (e.g. 'Cwd'). I used to keep a mental list for use with
cygwin, but it's all gone except for 'Cwd', which _does_ get updated. As
I recall, the procedure is to run the update through the test, then bail
out of _all_ instances of Perl (tricky if you're running a Perl-based
service), cd to the CPAN directory containing your distribution, and do
the "make install" by hand. I have sometimes had to manually delete the
files being replaced, but again this was under cygwin.

Tom Wyant

Posted by Chris on November 8, 2006, 11:59 pm
Please log in for more thread options



harryfmudd [AT] comcast [DOT] net wrote:

> ...
>
> Are you behind a proxy server? If you are, you will need to correctly
> configure LWP::UserAgent and/or define environment variable HTTP_PROXY
> and/or FTP_PROXY to point to the correct server and port. This will need
> to be done even if you use ppm.

I'm not quite sure whether I'm behind a proxy server. I have a
wireless router that presents one IP address to the outside world, and
another to machines inside my house. Is THAT a proxy server?

Is it significant that I just tried PPM and it works?

How do I "configure LWP::UserAgent"? I must have missed the doc (if
any) on how to do that.

> My opinion is that CPAN does not work very well under Windows (and that
> includes cygwin) because Windows won't let you replace a DLL that is in
> use. [...]

So you're saying that the CPAN module tries to replace DLLs that Perl
uses. Hadn't thought of that. Haven't gotten far enough for that to
be an issue, yet, actually. :-P So I'd guess this would affect PPM
as well as CPAN?

C.


Similar ThreadsPosted
Problems with forked packages and CPAN March 30, 2006, 1:53 pm
Archive::zip is how fast compared to the zip tool? October 10, 2005, 11:07 am
Availability of a tool for database contents reporting September 7, 2004, 9:41 pm
Need Perl/CGI Programmer for Shopping Cart/E-commerce Tool March 23, 2005, 2:36 pm
Make, Rake like tool in pure perl. I need feedback. July 5, 2008, 5:46 am
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails May 10, 2005, 9:51 pm
Use CPAN or CPAN::Shell for LOCAL ONLY install from tarballs? May 9, 2008, 1:04 pm
Where to get DBD::pg for Windows? January 12, 2005, 1:02 pm
Net::SFTP on Windows March 21, 2005, 9:55 pm
Windows: Perl:XS July 6, 2005, 4:57 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap