|
Posted by Ron Savage on May 16, 2007, 4:57 am
Please log in for more thread options
Hi Folks
Running CPAN from the command line (strawberry Perl), I often get a
error, as below, with tar file headers.
Any ideas?
(1)
C:\temp>perl -MCPAN -e "install SVN::Web"
...
New CPAN.pm version (v1.9102) available.
[Currently running version is v1.8801]
(2)
C:\temp>perl -MCPAN -e "install CPAN"
CPAN: File::HomeDir loaded ok
CPAN: Storable loaded ok
Going to read C:\DOCUME~1\Ron\LOCALS~1\Temp\cpan\Metadata
Database was generated on Wed, 09 May 2007 12:11:29 GMT
Running install for module CPAN
Running make for A/AN/ANDK/CPAN-1.9102.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
http://cpan.mirrors.ilisys.com.au/authors/id/A/AN/ANDK/CPAN-1.9102.tar.gz CPAN: Digest::SHA loaded ok
Fetching with LWP:
http://cpan.mirrors.ilisys.com.au/authors/id/A/AN/ANDK/CHECKSUMS Checksum for
C:\DOCUME~1\Ron\LOCALS~1\Temp\cpan\sources\authors\id\A\AN\ANDK\CPAN-1.9102.tar.gz
ok
Scanning cache C:\DOCUME~1\Ron\LOCALS~1\Temp\cpan\build for sizes
CPAN-1.9102/
CPAN-1.9102/t/
CPAN-1.9102/t/30shell.t
CPAN-1.9102/t/CPAN/
CPAN-1.9102/t/CPAN/authors/
CPAN-1.9102/t/CPAN/authors/id/
CPAN-1.9102/t/CPAN/authors/id/A/
CPAN-1.9102/t/CPAN/authors/id/A/AN/
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Make-Failearly-1.02.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/patches/
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/patches/CHECKSUMS
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Make-1.05.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Make-Zip-1.03.zip
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CHECKSUMS.2nd
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CHECKSUMS
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/NotInChecksums-0.000.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Build-1.03.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-BuildOrMake-1.02.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Build-Fails-1.03.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Build-DepeFails-1.02.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Make-CircDepeOne-1.00.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Make-CircDepeThree-1.00.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Make-Expect-1.00.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/ANDK/CPAN-Test-Dummy-Perl5-Make-CircDepeTwo-1.00.tar.gz
CPAN-1.9102/t/CPAN/authors/id/A/AN/CHECKSUMS
CPAN-1.9102/t/CPAN/authors/id/A/CHECKSUMS
CPAN-1.9102/t/CPAN/authors/id/CHECKSUMS
CPAN-1.9102/t/CPAN/authors/01mailrc.txt
CPAN-1.9102/t/CPAN/modules/
CPAN-1.9102/t/CPAN/modules/02packages.details.txt
CPAN-1.9102/t/CPAN/modules/03modlist.data
CPAN-1.9102/t/CPAN/CpanTestDummies-1.55.pm
CPAN-1.9102/t/CPAN/TestPatch.txt
CPAN-1.9102/t/CPAN/TestMirroredBy
/usr/bin/tar: Skipping to next header
/usr/bin/tar: Error exit delayed from previous errors
Uncompressed
C:\DOCUME~1\Ron\LOCALS~1\Temp\cpan\sources\authors\id\A\AN\ANDK\CPAN-1.9102.tar.gz
successfully
Using Tar:c:\msys.0\bin\tar.exe xvf "CPAN-1.9102.tar":
CPAN-1.9102/
CPAN-1.9102/t/
CPAN-1.9102/t/30shell.t
/usr/bin/tar: Skipping to next header
/usr/bin/tar: Error exit delayed from previous errors
Couldn't untar CPAN-1.9102.tar
(3)
C:\temp>c:\msys.0\bin\tar --version
tar (GNU tar) 1.13.19
Copyright 2001 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.
|
|
Posted by Sisyphus on May 16, 2007, 6:37 am
Please log in for more thread options
> Hi Folks
>
> Running CPAN from the command line (strawberry Perl), I often get a error,
> as below, with tar file headers.
>
> Any ideas?
.
.
.
> Couldn't untar CPAN-1.9102.tar
I use Strawberry Perl from time to time (and have found it to be quite
good). And I have msys - probably the same version as you - at least the
version of tar is the same. But I've never used CPAN.pm ... which severely
limits the quality of help you'll get from me :-)
One thing I did find is that (for me) msys's gzip and tar are able to
decompress and untar CPAN-1.9102 without any trouble at all ... so it seems
that they are not to blame. (I used them from within the cmd.exe shell, not
the msys shell.)You might check, if you haven't already, that they also
perform correctly for you when used manually.
One thing that does puzzle me is:
---------------------------------------
/usr/bin/tar: Skipping to next header
/usr/bin/tar: Error exit delayed from previous errors
Uncompressed
C:\DOCUME~1\Ron\LOCALS~1\Temp\cpan\sources\authors\id\A\AN\ANDK\CPAN-1.9102.tar.gz
successfully Using Tar:c:\msys.0\bin\tar.exe xvf
"CPAN-1.9102.tar":---------------------------------------First of all we see
'/usr/bin/tar' (which is how the msys shell wouldaddress tar.exe), and then we
see'c:\msys.0\bin\tar.exe' (which is how the cmd shell would addresstar.exe).
I'm wondering how that msys shell nomenclature is getting there,and whether that
has something to do with the problem.Presumably you're running all of this in
the cmd.exe shell ? And the pathenvironment variable includes "C:\msys.0\bin"
- which is how tar.exe isbeing found from within the cmd.exe shell ?The more I
think about it, the more baffling '/usr/bin/tar' becomes.At
http://win32.perl.org/wiki/index.php?title=Strawberry_Perl in the"Description"
section, it states that Strawberry Perl includes (among otherthings)
"Bundle::CPAN (including Perl modules that largely eliminate theneed for
external helper programs like gzip and tar) " .... so I'm thinkingthat perhaps
one solution might be to *not* use those gzip and tar helperprograms, but to
instead use whatever it is that Strawberry Perl developersenvisaged people would
use. (Of course that doesn't answer your question).I do know that use of msys
utilities was not anticipated - by the same tokenI can't really think of any
reason that they shouldn't be used - I use themoften.If the problem you've
described affects only the building of CPAN then Iguess you could just bite the
bullett and build and install CPAN the ol'fashioned manual way. (That doesn't
answer your question either.)Cheers,Rob
|
|
Posted by Sisyphus on May 16, 2007, 7:03 am
Please log in for more thread options
Same as my last post - only I hope it appears in a better format.
> Hi Folks
>
> Running CPAN from the command line (strawberry Perl), I often get a error,
> as below, with tar file headers.
>
> Any ideas?
.
.
.
> Couldn't untar CPAN-1.9102.tar
I use Strawberry Perl from time to time (and have found it to be quite
good). And I have msys - probably the same version as you - at least the
version of tar is the same. But I've never used CPAN.pm ... which severely
limits the quality of help you'll get from me :-)
One thing I did find is that (for me) msys's gzip and tar are able to
decompress and untar CPAN-1.9102 without any trouble at all ... so it seems
that they are not to blame. (I used them from within the cmd.exe shell, not
the msys shell.)You might check, if you haven't already, that they also
perform correctly for you when used manually.
One thing that does puzzle me is
+++++++++++++++++++++++++++++++++++++++
/usr/bin/tar: Skipping to next header
/usr/bin/tar: Error exit delayed from previous errors
Uncompressed
C:\DOCUME~1\Ron\LOCALS~1\Temp\cpan\sources\authors\id\A\AN\ANDK\CPAN-1.9102.tar.gz
successfully
Using Tar:c:\msys.0\bin\tar.exe xvf "CPAN-1.9102.tar"
+++++++++++++++++++++++++++++++++++++++
First of all we see '/usr/bin/tar' (which is how the msys shell would
address tar.exe), and then we see'c:\msys.0\bin\tar.exe' (which is how
the cmd shell would address tar.exe). I'm wondering how that msys shell
nomenclature is getting there,and whether that has something to do with the
problem.
Presumably you're running all of this in the cmd.exe shell ? And the path
environment variable includes "C:\msys.0\bin" - which is how tar.exe is
being found from within the cmd.exe shell ?
The more I think about it, the more baffling '/usr/bin/tar' becomes.
At http://win32.perl.org/wiki/index.php?title=Strawberry_Perl in
the"Description" section, it states that Strawberry Perl includes (among
otherthings) "Bundle::CPAN (including Perl modules that largely eliminate
theneed for external helper programs like gzip and tar) " .... so I'm
thinkingthat perhaps one solution might be to *not* use those gzip
and tar helper programs, but to instead use whatever it is that Strawberry
Perl developers envisaged people would use. (Of course that doesn't answer
your question). I do know that use of msys utilities was not anticipated -
by the same token I can't really think of any reason that they shouldn't be
used - I use them often.
If the problem you've described affects only the building of CPAN then I
guess you could just bite the bullett and build and install CPAN the ol'
fashioned manual way.
(That doesn't answer your question either.)
Cheers,Rob
|
|
Posted by =?ISO-8859-1?Q?Andreas_P=FCrze on May 16, 2007, 11:26 am
Please log in for more thread options
Ron Savage schrieb:
> Hi Folks
>
> Running CPAN from the command line (strawberry Perl), I often get a
> error, as below, with tar file headers.
>
> Any ideas?
> Using Tar:c:\msys.0\bin\tar.exe xvf "CPAN-1.9102.tar":
> CPAN-1.9102/
> CPAN-1.9102/t/
> CPAN-1.9102/t/30shell.t
> /usr/bin/tar: Skipping to next header
> /usr/bin/tar: Error exit delayed from previous errors
> Couldn't untar CPAN-1.9102.tar
Having experienced the same problem with ActivePerl and gnuwin32-port of
tar, i've decided some time ago to file this as a Heisenbug (it doesn't
reliably 'not work', i.e. sometimes it untars correctly, sometimes it
just bails out).
So, unfortunately i'm unable to offer a solution, but, IMHO, a
reasonable (and reliable) workaround:
in the CPAN shell, do:
o conf tar ptar
o conf commit
from perldoc ptar:
ptar is a small, tar look-alike program that uses the perl module
Archive::Tar to extract, create and list tar archives.
HTH,
Andreas Puerzer
--
Have Fun,
and if you can't have fun,
have someone else's fun.
The Beautiful South
|
| Similar Threads | Posted | | install HTML::Template - Problem reading cache file / Bad file number | July 24, 2004, 7:55 pm |
| File::FilterFuncs almost ready to upload to CPAN. | January 18, 2007, 10:22 pm |
| Problem Parsing Huge XML file using XML::Twig | April 23, 2007, 10:24 pm |
| CPAN IPC::Run Problem | February 17, 2005, 1:47 pm |
| Problem printing a file uing Win32::Printer | September 30, 2006, 3:36 pm |
| Problem gettting module from CPAN | September 19, 2004, 9:56 pm |
| http request headers | October 1, 2004, 12:47 pm |
| http headers with CGI.pm and mod_perl (bug?) | November 10, 2004, 10:19 pm |
| XML::Twig parseurl with input Headers/XML | January 16, 2005, 10:58 pm |
| Premature Ending of script headers | August 17, 2005, 4:53 pm |
|